function fullcalendar_options_fullcalendar_options_form in FullCalendar 7.2
Implements hook_fullcalendar_options_form().
File
- fullcalendar_options/
includes/ fullcalendar_options.fullcalendar.inc, line 44 - Provides extra FullCalendar configuration options.
Code
function fullcalendar_options_fullcalendar_options_form(&$form, &$form_state, &$view) {
$options = _fullcalendar_options_list();
// There were no options added, remove the parent fieldset.
if (empty($options)) {
unset($form['fullcalendar_options']);
return;
}
// Add the default value to each option.
foreach ($options as $key => $info) {
$form['fullcalendar_options'][$key] = $info;
if (isset($view->options['fullcalendar_options'][$key])) {
$form['fullcalendar_options'][$key]['#default_value'] = $view->options['fullcalendar_options'][$key];
}
}
}