1 views_ui.theme.inc theme_views_ui_view_storage($variables)

Display the storage status of the view.

File

core/modules/views_ui/views_ui.theme.inc, line 35
Theme functions for the Views UI module.

Code

function theme_views_ui_view_storage($variables) {
  $view = $variables['view'];

  switch ($view->type) {
    case t('Default'):
    default:
      $type = t('Default (module-provided)');
      break;

    case t('Normal'):
      $type = t('Custom');
      break;

    case t('Overridden'):
      $type = t('Overridden');
  }

  $output = '<div class="views-ui-view-storage">' . $type . '</div>';
  return $output;
}