You are here

function fullcalendar_fullcalendar_options_submit in FullCalendar 7.2

Implements hook_fullcalendar_options_submit().

File

includes/fullcalendar.fullcalendar.inc, line 465
Provides default FullCalendar configuration options.

Code

function fullcalendar_fullcalendar_options_submit($form, &$form_state, $view) {
  $options =& $form_state['values']['style_options'];

  // These field options have empty defaults, make sure they stay that way.
  foreach (array(
    'title',
    'url',
    'date',
  ) as $field) {
    if (empty($options['fields'][$field])) {
      unset($options['fields'][$field . '_field']);
    }
  }
}