Active
Project:
Administration theme
Version:
7.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Feb 2016 at 03:12 UTC
Updated:
4 Feb 2016 at 03:12 UTC
Jump to comment: Most recent
I wanted it to make pages matching this path: user/*/scheduler use the admin theme.
However, when I put that string in the textfield below "Use administration theme for the following pages:", nothing happened. Clearing all caches had no effect.
For those who need this and can't get Administration theme to work, I'll just say that I ended up solving my problem with a small custom module using hook_custom_theme. Here is the full code of my implementation of this hook. You put it in a custom module.
/**
* Implements hook_custom_theme().
*/
function MYMODULE_custom_theme() {
$cp = current_path();
if (fnmatch('user/*/scheduler', $cp)) {
return variable_get('admin_theme');
}
}
Comments