function views_ui_custom_theme in Views (for Drupal 7) 7.3
Same name and namespace in other branches
- 8.3 views_ui/views_ui.module \views_ui_custom_theme()
Implements hook_custom_theme().
1 string reference to 'views_ui_custom_theme'
- views_ui_admin_settings_basic in includes/
admin.inc - Form builder for the admin display defaults page.
File
- ./
views_ui.module, line 282 - Provide structure for the administrative interface to Views.
Code
function views_ui_custom_theme() {
$theme = variable_get('views_ui_custom_theme', '_default');
if ($theme != '_default') {
$available = list_themes();
if (isset($available[$theme]) && $available[$theme]->status && preg_match('/^admin\\/structure\\/views/', current_path())) {
return $theme;
}
}
}