You are here

function fullcalendar_options_fullcalendar_options_definition in FullCalendar 7.2

Implements hook_fullcalendar_options_definition().

File

fullcalendar_options/includes/fullcalendar_options.fullcalendar.inc, line 23
Provides extra FullCalendar configuration options.

Code

function fullcalendar_options_fullcalendar_options_definition() {
  $options = array();
  foreach (_fullcalendar_options_list() as $key => $info) {
    $options[$key]['default'] = $info['#default_value'];

    // If this is a Boolean value, set the 'bool' flag for export.
    if (isset($info['#data_type']) && $info['#data_type'] == 'bool') {
      $options[$key]['bool'] = TRUE;
    }
  }
  return array(
    'fullcalendar_options' => array(
      'contains' => $options,
    ),
  );
}