function fullcalendar_handler_field_gcal::options_form in FullCalendar 6.2
Same name and namespace in other branches
- 7.2 includes/views/handlers/fullcalendar_handler_field_gcal.inc \fullcalendar_handler_field_gcal::options_form()
File
- includes/
views/ handlers/ fullcalendar_handler_field_gcal.inc, line 26 - Provide a field that attaches a Google Calendar feed.
Class
- fullcalendar_handler_field_gcal
- @file Provide a field that attaches a Google Calendar feed.
Code
function options_form(&$form, &$form_state) {
$form['label'] = array(
'#type' => 'textfield',
'#title' => t('Label'),
'#default_value' => isset($this->options['label']) ? $this->options['label'] : '',
'#description' => t('The label for this field that will be displayed to end users if the style requires it.'),
);
$form['gcal'] = array(
'#type' => 'textfield',
'#title' => t('Feed URL'),
'#default_value' => $this->options['gcal'],
);
$form['class'] = array(
'#type' => 'textfield',
'#title' => t('CSS Class'),
'#default_value' => $this->options['class'],
);
$form['timezone'] = array(
'#type' => 'select',
'#title' => t('Time zone'),
'#default_value' => $this->options['timezone'],
'#options' => date_timezone_names(TRUE),
'#attributes' => array(
'class' => array(
'timezone-detect',
),
),
);
$form['editable'] = array(
'#type' => 'checkbox',
'#title' => t('Allow editing of events'),
'#default_value' => $this->options['editable'],
);
}