function views_ui_custom_theme

3.x views_ui.module views_ui_custom_theme()

Impements 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 253
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;
    }
  }
}