You are here

function calendar_plugin_display_ical::defaultable_sections in Calendar 7

Same name and namespace in other branches
  1. 6.2 calendar_ical/calendar_plugin_display_ical.inc \calendar_plugin_display_ical::defaultable_sections()
  2. 7.2 calendar_ical/calendar_plugin_display_ical.inc \calendar_plugin_display_ical::defaultable_sections()

List which sections are defaultable and what items each section contains.

Overrides views_plugin_display::defaultable_sections

File

calendar_ical/calendar_plugin_display_ical.inc, line 48
Views display plugin for the Calendar iCal module.

Class

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