Trigger Drupal Admin Theme

/ Published in: PHP
Save to your folder(s)

Needs to execute before theme is initialized -- Ideally in hook_init() -- but also works in hook_nodeapi $op == 'view'

Copy this code and paste it in your HTML
  1. global $custom_theme;
  2. $custom_theme = variable_get('admin_theme', 0);

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.