You are here

public function views_plugin_display_feed::defaultable_sections in Views (for Drupal 7) 7.3

Same name and namespace in other branches
  1. 6.3 plugins/views_plugin_display_feed.inc \views_plugin_display_feed::defaultable_sections()
  2. 6.2 plugins/views_plugin_display_feed.inc \views_plugin_display_feed::defaultable_sections()

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 84
Definition of views_plugin_display_feed.

Class

views_plugin_display_feed
The plugin that handles a feed, such as RSS or atom.

Code

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