/ 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 variable_get doesn't find the admin_theme.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
if ($match) { global $conf; $conf['theme_default'] = variable_get('admin_theme', '{admin-theme-name}'); }
Comments
