You are here

function calendar_plugin_display_attachment::options_submit in Calendar 7

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

Perform any necessary changes to the form values prior to storage. There is no need for this function to actually store the data.

Overrides views_plugin_display_attachment::options_submit

File

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

Class

calendar_plugin_display_attachment
The plugin that handles calendar attachment displays.

Code

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

  // It is very important to call the parent function here:
  parent::options_submit($form, $form_state);
  switch ($form_state['section']) {
    case 'calendar_type':
      $this
        ->set_option($form_state['section'], $form_state['values'][$form_state['section']]);
      break;
  }
}