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

yhahn’s picture

Assigned: Unassigned » yhahn
Status: Needs review » Fixed
Jackinloadup’s picture

I 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.

Status: Fixed » Closed (fixed)

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

detot’s picture

Version: 6.x-1.x-dev » 6.x-1.0-beta3
Status: Closed (fixed) » Active

doesn't work for me.

function_exists('admin_theme_init'))

returns true

but
$GLOBALS['custom_theme']
returns false (0)

mikl’s picture

Version: 6.x-1.0-beta3 » 6.x-2.0-alpha1
Status: Active » Fixed

Fixed with the new Rubik-theme (installed separately in 6.x-2.x).

Status: Fixed » Closed (fixed)

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