You are here

public function availability_calendar_handler_argument_availability::options_form in Availability Calendars 7.4

Same name and namespace in other branches
  1. 7.5 views/availability_calendar_handler_argument_availability.inc \availability_calendar_handler_argument_availability::options_form()

Build the options form.

Overrides views_handler_argument::options_form

File

views/availability_calendar_handler_argument_availability.inc, line 31

Class

availability_calendar_handler_argument_availability
Defines a contextual filter to filter on availability.

Code

public function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form['end_date_exclusive'] = array(
    '#type' => 'checkbox',
    '#title' => t('Exclude end date'),
    '#description' => t('If selected, the end date itself will not be taken into account when filtering on availability, typical for overnight rental. This setting will be ignored if only a single date is passed in.'),
    '#default_value' => !empty($this->options['end_date_exclusive']),
  );
}