function views_content_get_display_label

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

Code

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