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:
- Calling theme function from hook_init() interferes with administration theme
http://drupal.org/node/219910 - Administration Theme doesn't apply to Blocks pages (admin/build/block)
http://drupal.org/node/219910








Post new comment