You are here

function hook_fullcalendar_options_form in FullCalendar 7.2

Return an array to be added to FullCalendar's Views options form.

Parameters

array $form: The FullCalendar style plugin options form structure.

array $form_state: The FullCalendar style plugin options form state.

object $view: The FullCalendar view object.

See also

views_object::options_form()

3 functions implement hook_fullcalendar_options_form()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

colorbox_fullcalendar_options_form in fullcalendar_options/includes/colorbox.fullcalendar.inc
Implements hook_fullcalendar_options_form().
fullcalendar_fullcalendar_options_form in includes/fullcalendar.fullcalendar.inc
Implements hook_fullcalendar_options_form().
fullcalendar_options_fullcalendar_options_form in fullcalendar_options/includes/fullcalendar_options.fullcalendar.inc
Implements hook_fullcalendar_options_form().
1 invocation of hook_fullcalendar_options_form()
fullcalendar_plugin_style_fullcalendar::options_form in includes/views/plugins/fullcalendar_plugin_style_fullcalendar.inc
Provide a form to edit options for this plugin.

File

./fullcalendar.api.php, line 193
Hooks provided by the FullCalendar module.

Code

function hook_fullcalendar_options_form(&$form, &$form_state, &$view) {
  $form['colorbox']['colorbox'] = array(
    '#type' => 'checkbox',
    '#title' => t('Open events with Colorbox'),
    '#default_value' => $view->options['colorbox']['colorbox'],
  );
  $form['colorbox']['colorboxIFrame'] = array(
    '#type' => 'checkbox',
    '#title' => t('Open events in iFrame'),
    '#default_value' => $view->options['colorbox']['colorboxIFrame'],
  );
  $form['colorbox']['colorboxClass'] = array(
    '#type' => 'textfield',
    '#title' => t('Classname or ID selector'),
    '#default_value' => $view->options['colorbox']['colorboxClass'],
  );
  $form['colorbox']['colorboxWidth'] = array(
    '#type' => 'textfield',
    '#title' => t('Width'),
    '#default_value' => $view->options['colorbox']['colorboxWidth'],
  );
  $form['colorbox']['colorboxHeight'] = array(
    '#type' => 'textfield',
    '#title' => t('Height'),
    '#default_value' => $view->options['colorbox']['colorboxHeight'],
  );
  $form['sameWindow']['#dependency'] = array(
    'edit-style-options-colorbox-colorbox' => array(
      0,
    ),
  );
}