1 views_ui.theme.inc theme_views_ui_view_name($variables)

Display the view name and its machine name.

File

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

Code

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

  $output = '';
  $output .= '<div class="views-ui-view-name">' . check_plain($view->get_human_name()) . '</div>';
  $output .= '<div class="views-ui-view-machine-name">(<span>' . check_plain($view->name) . '</span>)</div>';
  return $output;
}