function fullcalendar_options_admin_settings in FullCalendar 7.2
Options configuration form for exposing new FullCalendar options.
1 string reference to 'fullcalendar_options_admin_settings'
- fullcalendar_options_menu in fullcalendar_options/
fullcalendar_options.module - Implements hook_menu().
File
- fullcalendar_options/
includes/ fullcalendar_options.admin.inc, line 11 - Administrative page callback for the FullCalendar Options module.
Code
function fullcalendar_options_admin_settings() {
// Use a fieldset with #tree so that it is saved as a single variable.
$form['fullcalendar_options'] = array(
'#type' => 'fieldset',
'#title' => t('Options'),
'#description' => t('Each setting can be exposed for all views.'),
'#tree' => TRUE,
);
// Gather all of the available options and convert them to checkboxes.
$values = variable_get('fullcalendar_options', array());
foreach (_fullcalendar_options_list(TRUE) as $key => $info) {
$form['fullcalendar_options'][$key] = array(
'#type' => 'checkbox',
'#default_value' => isset($values[$key]) ? $values[$key] : FALSE,
) + $info;
}
return system_settings_form($form);
}