function views_plugin_display::defaultable_sections
List which sections are defaultable and what items each section contains.
4 calls to views_plugin_display::defaultable_sections()
- views_plugin_display::export_option in plugins/
views_plugin_display.inc - Override of export_option()
- views_plugin_display::options_form in plugins/
views_plugin_display.inc - Provide the default form for setting options.
- views_plugin_display::set_override in plugins/
views_plugin_display.inc - Flip the override setting for the given section.
- views_plugin_display_feed::defaultable_sections in plugins/
views_plugin_display_feed.inc - List which sections are defaultable and what items each section contains.
1 method overrides views_plugin_display::defaultable_sections()
- views_plugin_display_feed::defaultable_sections in plugins/
views_plugin_display_feed.inc - List which sections are defaultable and what items each section contains.
File
-
plugins/
views_plugin_display.inc, line 433
Class
- views_plugin_display
- The default display plugin handler. Display plugins handle options and basic mechanisms for different output methods.
Code
public function defaultable_sections($section = NULL) {
$sections = array(
'access' => array(
'access',
'access_options',
),
'access_options' => array(
'access',
'access_options',
),
'cache' => array(
'cache',
'cache_options',
),
'cache_options' => array(
'cache',
'cache_options',
),
'title' => array(
'title',
),
'css_class' => array(
'css_class',
),
'use_ajax' => array(
'use_ajax',
),
'hide_attachment_summary' => array(
'hide_attachment_summary',
),
'hide_admin_links' => array(
'hide_admin_links',
),
'group_by' => array(
'group_by',
),
'query' => array(
'query',
),
'use_more' => array(
'use_more',
'use_more_always',
'open_new_window',
'use_more_text',
),
'use_more_always' => array(
'use_more',
'use_more_always',
'open_new_window',
'use_more_text',
),
'use_more_text' => array(
'use_more',
'use_more_always',
'open_new_window',
'use_more_text',
),
'open_new_window' => array(
'use_more',
'use_more_always',
'open_new_window',
'use_more_text',
),
'link_display' => array(
'link_display',
'link_url',
),
// Force these to cascade properly.
'style_plugin' => array(
'style_plugin',
'style_options',
'row_plugin',
'row_options',
),
'style_options' => array(
'style_plugin',
'style_options',
'row_plugin',
'row_options',
),
'row_plugin' => array(
'style_plugin',
'style_options',
'row_plugin',
'row_options',
),
'row_options' => array(
'style_plugin',
'style_options',
'row_plugin',
'row_options',
),
'pager' => array(
'pager',
'pager_options',
),
'pager_options' => array(
'pager',
'pager_options',
),
'exposed_form' => array(
'exposed_form',
'exposed_form_options',
),
'exposed_form_options' => array(
'exposed_form',
'exposed_form_options',
),
// These guys are special.
'header' => array(
'header',
),
'footer' => array(
'footer',
),
'empty' => array(
'empty',
),
'relationships' => array(
'relationships',
),
'fields' => array(
'fields',
),
'sorts' => array(
'sorts',
),
'arguments' => array(
'arguments',
),
'filters' => array(
'filters',
'filter_groups',
),
'filter_groups' => array(
'filters',
'filter_groups',
),
);
// If the display cannot use a pager, then we cannot default it.
if (empty($this->definition['use pager'])) {
unset($sections['pager']);
unset($sections['items_per_page']);
}
foreach ($this->extender as $extender) {
$extender->defaultable_sections($sections, $section);
}
if ($section) {
if (!empty($sections[$section])) {
return $sections[$section];
}
}
else {
return $sections;
}
}