function overlay_paths_custom_theme in Overlay Paths 7
Implements hook_custom_theme().
We duplicate the functionality of the system module's implementation, but check to see if we're actually on one of the non-administrative overlay pages too.
See also
File
- ./
overlay_paths.module, line 125 - The overlay paths module.
Code
function overlay_paths_custom_theme() {
if (user_access('view the administration theme') && path_is_admin(current_path()) && !drupal_match_path(current_path(), overlay_paths_get_overlay_patterns())) {
return variable_get('admin_theme');
}
}