Heine

  • Home
  • Drupal
  • About
Home » Guides » Drupal Developer FAQ

Implemented hook_block, now all blocks are gone

If all your blocks disappear from the site the moment you add a hook_block implementation to your module, check whether you have a theme with the same name as your module.

Cause: The theme system uses your hook_block implementation as if it were a theme_block implementation.

Either rename your module or the theme.

‹ How do I recreate a Javascript translation file? up Why is a menu item from hook_menu not accessible? ›
  • Printer-friendly version

Comments

ho thanks man !!

Submitted by Anonymous (not verified) on Thu, 2010/01/14 - 21:14

ho thanks man !!

Thanks

Submitted by jamie (not verified) on Mon, 2010/02/01 - 18:31

Thanks for this one! It was a mystery to me until I saw your post.

Saved me! thanks so much for

Submitted by Anonymous (not verified) on Sun, 2010/05/23 - 12:45

Saved me!

thanks so much for this.

Warme groeten uit België in het geval dat je nederlandssprekend bent.

Great, Thank you!

Submitted by arielberg (not verified) on Fri, 2010/07/09 - 11:39

I didnt had a clue what was the problem - . great post.

Thanks man

Recent posts

  • Teampassword manager's password generator is biased
  • Other vectors for SA-CORE-2014-005?
  • Lazy loading: hook_hook_info is for hook owners only.
  • "Always offline" problem in EA's Origin due to antivirus
  • From bug to exploit - Bakery SSO
more

Security reviews

I provide security reviews of custom code, contributed modules, themes and entire sites via LimoenGroen.

Contact us for a quote.

Follow @ustima

Copyright © 2021 by Heine Deelstra. All rights reserved.

  • Home
  • Drupal
  • About