You are here

function views_ui_get_display_label in Views (for Drupal 7) 7.3

Placeholder function for overriding $display->display_title.

@todo Remove this function once editing the display title is possible.

3 calls to views_ui_get_display_label()
views_ui_edit_form in includes/admin.inc
Form builder callback for editing a View.
views_ui_edit_page_display_tabs in includes/admin.inc
Adds tabs for navigating across Displays when editing a View.
views_ui_get_display_tab_details in includes/admin.inc
Helper function to get the display details section of the edit UI.

File

includes/admin.inc, line 5478
Provides the Views' administrative interface.

Code

function views_ui_get_display_label($view, $display_id, $check_changed = TRUE) {
  $title = $display_id == 'default' ? t('Master') : $view->display[$display_id]->display_title;
  $title = views_ui_truncate($title, 25);
  if ($check_changed && !empty($view->changed_display[$display_id])) {
    $changed = '*';
    $title = $title . $changed;
  }
  return $title;
}