1 views_ui.theme.inc theme_views_ui_view_name($variables)

Display the view name and its machine name.

Deprecated

as of 1.19.4. Labels are now output using the generic theme_label_machine_name() function.

File

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

Code

function theme_views_ui_view_name($variables) {
  watchdog_deprecated_function('theme', __FUNCTION__);
  $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;
}