function views_plugin_display_feed::defaultable_sections in Views (for Drupal 7) 6.3
Same name and namespace in other branches
- 6.2 plugins/views_plugin_display_feed.inc \views_plugin_display_feed::defaultable_sections()
- 7.3 plugins/views_plugin_display_feed.inc \views_plugin_display_feed::defaultable_sections()
Static member function to list which sections are defaultable and what items each section contains.
Overrides views_plugin_display::defaultable_sections
File
- plugins/
views_plugin_display_feed.inc, line 46 - Contains the feed display plugin.
Class
- views_plugin_display_feed
- The plugin that handles a feed, such as RSS or atom.
Code
function defaultable_sections($section = NULL) {
if (in_array($section, array(
'style_options',
'style_plugin',
'row_options',
'row_plugin',
))) {
return FALSE;
}
$sections = parent::defaultable_sections($section);
// Tell views our sitename_title option belongs in the title section.
if ($section == 'title') {
$sections[] = 'sitename_title';
}
elseif (!$section) {
$sections['title'][] = 'sitename_title';
}
return $sections;
}