function template_preprocess_views_ui_view_info

Implements hook_preprocess_HOOK() for theme_views_ui_view_info().

File

drupal/core/modules/views/views_ui/theme/theme.inc, line 60
Preprocessors and theme functions for the Views UI.

Code

function template_preprocess_views_ui_view_info(&$variables) {
  $variables['title'] = $variables['view']
    ->getHumanName();
  $displays = $variables['view']
    ->getDisplaysList();
  $variables['displays'] = empty($displays) ? t('None') : format_plural(count($displays), 'Display', 'Displays') . ': ' . '<em>' . implode(', ', $displays) . '</em>';
}