You are here

function views_content_get_display_label in Chaos Tool Suite (ctools) 7

Get the proper label for a display.

Views renamed the default to Master, but it can still have a conflicting display title. Fix that.

4 calls to views_content_get_display_label()
views_content_views_content_type_admin_info in views_content/plugins/content_types/views.inc
Returns the administrative title for a type.
views_content_views_content_type_admin_title in views_content/plugins/content_types/views.inc
Returns the administrative title for a type.
views_content_views_content_type_edit_form in views_content/plugins/content_types/views.inc
Returns an edit form for a block.
views_content_views_select_display in views_content/plugins/content_types/views.inc
Returns an edit form for a block.

File

views_content/views_content.module, line 211
Provides views as panels content, configurable by the administrator. Each view provided as panel content must be configured in advance, but once configured, building panels with views is a little bit simpler.

Code

function views_content_get_display_label($view, $display_id) {
  $title = $display_id == 'default' ? t('Master') : $view->display[$display_id]->display_title;
  return $title;
}