function colorbox_fullcalendar_options_form in FullCalendar 7.2
Same name and namespace in other branches
- 8 fullcalendar_options/includes/colorbox.fullcalendar.inc \colorbox_fullcalendar_options_form()
- 8.3 fullcalendar_options/includes/colorbox.fullcalendar.inc \colorbox_fullcalendar_options_form()
Implements hook_fullcalendar_options_form().
File
- fullcalendar_options/
includes/ colorbox.fullcalendar.inc, line 44 - Provides extra FullCalendar configuration options for Colorbox.
Code
function colorbox_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'],
'#data_type' => 'bool',
);
$form['colorbox']['colorboxIFrame'] = array(
'#type' => 'checkbox',
'#title' => t('Open events in iFrame'),
'#default_value' => $view->options['colorbox']['colorboxIFrame'],
'#dependency' => array(
'edit-style-options-colorbox-colorbox' => array(
1,
),
),
'#data_type' => 'bool',
);
$form['colorbox']['colorboxClass'] = array(
'#type' => 'textfield',
'#title' => t('Classname or ID selector'),
'#default_value' => $view->options['colorbox']['colorboxClass'],
'#dependency' => array(
'edit-style-options-colorbox-colorbox' => array(
1,
),
),
);
$form['colorbox']['colorboxWidth'] = array(
'#type' => 'textfield',
'#title' => t('Width'),
'#default_value' => $view->options['colorbox']['colorboxWidth'],
'#dependency' => array(
'edit-style-options-colorbox-colorbox' => array(
1,
),
),
);
$form['colorbox']['colorboxHeight'] = array(
'#type' => 'textfield',
'#title' => t('Height'),
'#default_value' => $view->options['colorbox']['colorboxHeight'],
'#dependency' => array(
'edit-style-options-colorbox-colorbox' => array(
1,
),
),
);
$form['sameWindow']['#dependency'] = array(
'edit-style-options-colorbox-colorbox' => array(
0,
),
);
}