You are here

function fullcalendar_handler_field_gcal::options_form in FullCalendar 7.2

Same name and namespace in other branches
  1. 6.2 includes/views/handlers/fullcalendar_handler_field_gcal.inc \fullcalendar_handler_field_gcal::options_form()

Default options form provides the label widget that all fields should have.

Overrides views_handler_field::options_form

File

includes/views/handlers/fullcalendar_handler_field_gcal.inc, line 25
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'),
    '#maxlength' => 1024,
    '#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' => system_time_zones(),
    '#attributes' => array(
      'class' => array(
        'timezone-detect',
      ),
    ),
  );
}