/ Published in: PHP
This example triggers the admin theme when on any of the user/* pages (login, edit, etc.). Put the name of your admin theme in {admin-theme-name} so there's a safe fallback in case variableget doesn't find the admintheme.
Expand |
Embed | Plain Text
if ($match) { global $conf; $conf['theme_default'] = variable_get('admin_theme', '{admin-theme-name}'); }
You need to login to post a comment.
