function views_plugin_display_feed::defaultable_sections

3.x views_plugin_display_feed.inc views_plugin_display_feed::defaultable_sections($section = NULL)
2.x views_plugin_display_feed.inc views_plugin_display_feed::defaultable_sections($section = NULL)

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;
}