Heine

  • home
  • drupal
  • about
Home

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.

Average: 4.9 (9 votes)
‹ How do I recreate a Javascript translation file? up Why is a menu item from hook_menu not accessible? ›
  • Printer-friendly version
  • Login to post comments

ho thanks man !!

Anonymous (not verified) — Thu, 14/01/2010 - 21:14

ho thanks man !!

  • Login to post comments

Thanks

jamie (not verified) — Mon, 01/02/2010 - 18:31

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

  • Login to post comments

Saved me! thanks so much for

Anonymous (not verified) — Sun, 23/05/2010 - 11:45

Saved me!

thanks so much for this.

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

  • Login to post comments

Great, Thank you!

arielberg (not verified) — Fri, 09/07/2010 - 10:39

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

Thanks man

  • Login to post comments

Recent posts

  • In doubt? Read the specs!
  • About the Webform SA
  • Psalmen voor Altblokfluit
  • Unserializing user-supplied data, a bad idea
  • Planet Drupal past and current
more

Security reviews

  • Afraid custom code makes your site vulnerable?
  • You don't really trust that module you just downloaded from Drupal.org?

Sleep better after a security review.

Tags

bladmuziek blood donation blood supply CSRF Drupal Input Format modx MSM Performance Planet Drupal Security Varnish
more tags
  • home
  • drupal
  • about

Copyright © 2011 by Heine Deelstra. All rights reserved.