function views_ui_custom_theme in Views (for Drupal 7) 8.3
Same name and namespace in other branches
- 7.3 views_ui.module \views_ui_custom_theme()
Impements hook_custom_theme()
File
- views_ui/
views_ui.module, line 275 - Provide structure for the administrative interface to Views.
Code
function views_ui_custom_theme() {
$theme = config('views.settings')
->get('ui.custom_theme');
if ($theme != '_default') {
$available = list_themes();
if (isset($available[$theme]) && $available[$theme]->status && preg_match('/^admin\\/structure\\/views/', current_path())) {
return $theme;
}
}
}