Dictionary.com
Thesaurus.com

rocks in one's head, have

Idioms  
  1. Show poor judgment, act stupidly, as in If you think that's an accurate summary, you've got rocks in your head. The rocks in this idiom are a supposed substitute for brains. [Slang; 1940s]

  2. see rocks in one's head.