If your using the Popups Module and have 'Scan all pages for popup links.' checked, it forces the admin block configuration page to use the admin theme.

Per the discussion here:
http://drupal.org/node/281643
You'll see many people are reporting this as well.

So everytime I need to configure my blocks i have to turn off the Popup's 'scan' setting...

Comments

Josephnewyork’s picture

OK, basically this happens when calling theme() too early. This has a work around, if we were to get the tpl contents the same way theme() does, but removing the middle-man. ;)

Replace the theme() function (popups.module:243) with theme_render_template() function and we have a work around...

//$settings['popups']['template'] = theme('popups_popup');
    $settings['popups']['template'] = theme_render_template(drupal_get_path('module', 'popups').'/popups-popup.tpl.php',array());

This way you can use the 'Scan all pages for popup links.' checked without messing your block config theme.

Its a work-around but at least it works.

pbeski’s picture

Thanks Joe Weitzel,
This is working for me.

Is there any execution time difference between these two functions (theme() and theme_render_template())? How to check this?

Josephnewyork’s picture

No, I virtually sequential.