function mymodule_admin_paths() {
$paths = array(
'admin-dvr/*' => TRUE,
);
return $paths;
}
I have a module which generates a page and I want that page to be themed with the admin theme. I implemented the above hook so that when I browse to admin-dvr/dvr/manage
it should be displaying with the admin theme.
On my dev server, this works just fine. When I push that code to production, and flush all the caches, I’ll sometimes see it load with the admin theme ONCE, but then every time after that it loads with the mainsite theme.
What am I doing wrong? Why won’t it load my page with the admin theme?