1 views_ui.module | views_ui_custom_theme() |
Implements hook_custom_theme()
File
- core/
modules/ views_ui/ views_ui.module, line 261 - Provide structure for the administrative interface to Views.
Code
function views_ui_custom_theme() {
$theme = config_get('views_ui.settings', 'custom_theme');
if ($theme != '_default') {
$available = list_themes();
if (isset($available[$theme]) && $available[$theme]->status && preg_match('/^admin\/structure\/views/', current_path())) {
return $theme;
}
}
}