You are here

function fullcalendar_plugin_style_fullcalendar::option_definition in FullCalendar 6.2

Same name and namespace in other branches
  1. 7.2 includes/views/plugins/fullcalendar_plugin_style_fullcalendar.inc \fullcalendar_plugin_style_fullcalendar::option_definition()

File

includes/views/plugins/fullcalendar_plugin_style_fullcalendar.inc, line 9
Contains the FullCalendar style plugin.

Class

fullcalendar_plugin_style_fullcalendar
@file Contains the FullCalendar style plugin.

Code

function option_definition() {
  $options['display'] = array(
    'contains' => array(
      'fc_view' => array(
        'default' => 'month',
      ),
      'fc_firstday' => array(
        'default' => '0',
      ),
      'fc_weekmode' => array(
        'default' => 'fixed',
      ),
    ),
  );
  $options['modules'] = array(
    'contains' => array(
      'fc_theme' => array(
        'default' => FALSE,
        'bool' => TRUE,
      ),
      'fc_url_colorbox' => array(
        'default' => FALSE,
        'bool' => TRUE,
      ),
      'fc_url_colorbox_class' => array(
        'default' => '#squeeze',
      ),
      'fc_url_colorbox_width' => array(
        'default' => '80%',
      ),
      'fc_url_colorbox_height' => array(
        'default' => '80%',
      ),
      'fc_window' => array(
        'default' => FALSE,
        'bool' => TRUE,
      ),
    ),
  );
  $options['header'] = array(
    'contains' => array(
      'fc_left' => array(
        'default' => 'today prev,next',
      ),
      'fc_center' => array(
        'default' => 'title',
      ),
      'fc_right' => array(
        'default' => 'month agendaWeek agendaDay',
      ),
    ),
  );
  $options['times'] = array(
    'contains' => array(
      'fc_timeformat' => array(
        'default' => 'h:mm{ - h:mm}',
      ),
      'fc_clock' => array(
        'default' => FALSE,
        'bool' => TRUE,
      ),
      'fc_default_date' => array(
        'default' => FALSE,
        'bool' => TRUE,
      ),
      'fc_date' => array(
        'default' => array(
          'year' => '1900',
          'month' => '1',
          'day' => '1',
        ),
      ),
    ),
  );
  return $options;
}