Thursday, 08 July 2010

In a recent project, I had the following problem:

When I activated an administration theme other than the system's default (whether it was Garland or a different one), the block configuration page (/admin/build/block) would only display the administration theme's regions in the region drop down menus. Additionally, the block configuration page was always being displayed in the administration theme, while normally Drupal displays that page in the theme you're configuring blocks for. So, something was wrong.

After a bit of searching, we found out that the problem was with hook_init(). Several issues reported that doing weird things in hook_init() to be the root of this evil, see the links below. In my own case, it was a drupal_add_feed() being called in hook_init() without an if-check around it. Putting an if-check around drupal_add_feed() solved my problem.

Relevant issues on http://drupal.org:

Written byBruno De Bondt

While trained to be a journalist and developing sites for fun, his experience as a webmaster for an ngo and years of volunteering for Indymedia.be led to his current site and server management expertise. This Drupal Developer/Themer & Linux Administrator is the Krimson link between web development & communication. The following quote sums up pretty well why he does what he does: 'Whatever your first issue of concern, media had better be your second, because without change in the media, progress in your primary area is far less likely.'

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <h4> <br>
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. The supported tag styles are: <foo>, [foo].
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.
QR-code Krimson Antwerpen

Antwerp

Zénobe Grammestraat 34
2018 Antwerp, Belgium
Call us: +32 (0)3 298 69 98
E-mail us: info@krimson.be
QR-code Krimson Gent

Ghent

Hof ter Dampoort
Dendermondsesteenweg 48A - 101
9000 Gent, Belgium
E-mail us: info@krimson.be

Contact us

By submitting this form, you accept the Mollom privacy policy.