Admin theme for node (add, edit) and user (edit)
Last modified: March 28, 2009 - 01:49
If you want to use your selected admin theme when creating a node or editing an user, you can do this easily with a very small custom module. In your custom module's hook_menu(), add this (outside of the $may_cache block):
<?php
if ((arg(0) == 'node' && arg(1) == 'add') || (arg(0) == 'node' && arg(2) == 'edit') || (arg(0) == 'user' && arg(2) == 'edit') ) {
global $custom_theme;
$custom_theme = variable_get('admin_theme', '0');
drupal_add_css(drupal_get_path('module', 'system') .'/admin.css', 'module');
}
?>Or whatever other set of path rules you want.
See also:
Please read this http://drupal.org/node/242200#comment-793908 for a more detailed discussion.
