Closed (won't fix)
Project:
Coder
Version:
5.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
4 Sep 2008 at 09:43 UTC
Updated:
24 Aug 2012 at 13:26 UTC
In Drupal 5 and before, nobody should call a theme() function in a hook_menu(), because it would initialize the theme system too early and prevent dynamic modification of the theme (for example in the block administration interface).
See for example #64409: Block settings not uniquely set for themes (unless set from default theme).
Could we write a rule for this?
Comments
Comment #1
damien tournoud commentedOf course, that's a feature request.
Comment #2
douggreen commentedDo we have the same problem/restriction in 6.x?
Comment #3
damien tournoud commentedThe problem is irrelevant in 6 because hook_menu() is now only called during the menu rebuilding process.
Comment #4
douggreen commentedComment #5
stella commentedDrupal 5 version is no longer supported, closing.