Closed (fixed)
Project:
Administration theme
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Oct 2010 at 17:02 UTC
Updated:
25 Dec 2010 at 13:50 UTC
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