Heine

  • home
  • drupal
  • drupal core commits
  • 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: 5 (4 votes)
‹ How do I recreate a Javascript translation file? up Why is a menu item from hook_menu not accessible? ›
  • Printer-friendly version

ho thanks man !!

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

ho thanks man !!

  • reply

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.

  • reply

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.

  • reply

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

  • reply

Post new comment

I reserve the right to edit any comment submitted to the site. If your comment contains flaming, advertisements, or simply too many spelling errors (leet speak), it may never appear.
The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <as>, <as3>, <csharp>, <diff>, <drupal5>, <drupal6>, <html>, <js>, <mysql>, <php>, <phpbrief>, <python>, <sql>, <plain>, <xml>. Beside the tag style "<foo>" it is also possible to use "[foo]". PHP source code can also be enclosed in <?php ... ?> or <% ... %>.

More information about formatting options

Recent posts

  • Planet Drupal past and current
  • Help! - Cannot access a global variable.
  • Why is my module's update hook not listed on update.php's selection form?
  • How do I add a class to a link generated with l()
  • ZeroDayScan - Full path disclosure bug in Drupal 6.16 (0day)
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

Captcha CSRF Drupal embed Input Format modx OpenID Performance Planet Drupal rants Security Varnish
more tags
  • home
  • drupal
  • drupal core commits
  • about

Copyright © 2010 by Heine Deelstra. All rights reserved.