1 views_ui.admin.inc views_ui_show_default_display($view)

Controls whether the default display should have its own tab on configure.

File

core/modules/views_ui/views_ui.admin.inc, line 1529
Provides the Views' administrative interface.

Code

function views_ui_show_default_display($view) {
  // Always show the default display for advanced users who prefer that mode.
  $advanced_mode = config_get('views_ui.settings', 'show_master_display');
  // For other users, show the default display only if there are no others, and
  // hide it if there's at least one "real" display.
  $additional_displays = (count($view->display) == 1);

  return $advanced_mode || $additional_displays;
}