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?

CommentFileSizeAuthor
admin_theme_hook_custom_theme.patch1.21 KBvaartio

Comments

lpalgarvio’s picture

Priority: Normal » Major
Status: Active » Needs review

getting no errors with this patch.
before applying this patch, i had errors all over the place because of a misspelled $GLOBALS.

davyvdb’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.