function views_plugin_display_feed::defaultable_sections

Overrides views_plugin_display::defaultable_sections

File

plugins/views_plugin_display_feed.inc, line 85

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