Implements hook_custom_theme().
function system_custom_theme() { if (user_access('view the administration theme') && path_is_admin(current_path())) { return variable_get('admin_theme'); } }