Drupal 7 does not recognize custom pages defined on admin/appearance page because global variable $custom_theme does not exist anymore. The current version of admin_theme.module makes all theme checking stuff in hook_init. Rather than using hook_init we can use hook_custom_theme in Drupal 7. Attached is the patch where hook_init has been replaced by hook_custom_theme. Would this be a good approach?
| Comment | File | Size | Author |
|---|---|---|---|
| admin_theme_hook_custom_theme.patch | 1.21 KB | vaartio |
Comments
Comment #1
lpalgarvio commentedgetting no errors with this patch.
before applying this patch, i had errors all over the place because of a misspelled $GLOBALS.
Comment #2
davyvdb commented