The admin_theme module allows developers and users alike to designate more pages to use the admin theme. This does not work with admin.module, since the "slate" theme is not loadable without calling _admin_init_theme(); first. So if you're using both, you'll get no theme at all on those pages.
As a fix for this problem, there's two things to be done:
- Increase the module weight of admin.module to 1 (or more) to make its hook_init load after admin_theme.module's.
- Add the following extra condition to admin_init():
else if (function_exists('admin_theme_init') && $GLOBALS['custom_theme'] == 'slate') { _admin_init_theme(); }
Comments
Comment #1
yhahn commentedThanks. Committed: http://drupal.org/cvs?commit=226996
Comment #2
Jackinloadup commentedI did a hack to get slate to work with the sections module. Im not sure if this patch would affect that issue as well or not.
My quick had involved calling _admin_init_theme() in the sections module. I dont think that is the cleanest solution.
Thoughts?
i can provide a patch if desired.
Comment #4
detot commenteddoesn't work for me.
returns true
but
$GLOBALS['custom_theme']returns false (0)
Comment #5
miklFixed with the new Rubik-theme (installed separately in 6.x-2.x).