You are here

function calendar_plugin_display_ical::options_submit in Calendar 6.2

Same name and namespace in other branches
  1. 7 calendar_ical/calendar_plugin_display_ical.inc \calendar_plugin_display_ical::options_submit()
  2. 7.2 calendar_ical/calendar_plugin_display_ical.inc \calendar_plugin_display_ical::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.

File

calendar_ical/calendar_plugin_display_ical.inc, line 158

Class

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

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 'title':
      $this
        ->set_option('sitename_title', $form_state['values']['sitename_title']);
      break;
    case 'displays':
      $this
        ->set_option($form_state['section'], $form_state['values'][$form_state['section']]);
      break;
  }
}