You are here

function calendar_plugin_display_attachment::options_form in Calendar 7.2

Same name and namespace in other branches
  1. 6.2 includes/calendar_plugin_display_attachment.inc \calendar_plugin_display_attachment::options_form()
  2. 7 includes/calendar_plugin_display_attachment.inc \calendar_plugin_display_attachment::options_form()

Provide the default form for setting options.

Overrides views_plugin_display_attachment::options_form

File

includes/calendar_plugin_display_attachment.inc, line 188
Views display plugin for the Calendar module.

Class

calendar_plugin_display_attachment
The plugin that handles calendar attachment displays.

Code

function options_form(&$form, &$form_state) {

  // It is very important to call the parent function here:
  parent::options_form($form, $form_state);
  switch ($form_state['section']) {
    case 'calendar_type':
      $form['#title'] .= t('Calendar period');
      $form['calendar_type'] = array(
        '#type' => 'select',
        '#description' => t('Select the calendar time period for this display.'),
        '#default_value' => $this
          ->calendar_type(),
        '#options' => calendar_display_types(),
      );
      break;
  }
}