Do not call theme() in hook_menu()
Posted September 4th, 2008 by douggreen
in
5.x-2.x-dev, Code, feature request, normal, active
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?