You are here

function rooms_booking_handler_unit_filter::expose_form in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7

Options form subform for exposed filter options.

Overrides views_handler_filter_in_operator::expose_form

See also

options_form()

File

modules/rooms_booking/views/rooms_booking_handler_unit_filter.inc, line 221

Class

rooms_booking_handler_unit_filter
@file

Code

function expose_form(&$form, &$form_state) {
  parent::expose_form($form, $form_state);
  if ($this->options['type'] != 'select') {
    unset($form['expose']['reduce']);
  }
  $form['error_message'] = array(
    '#type' => 'checkbox',
    '#title' => t('Display error message'),
    '#default_value' => !empty($this->options['error_message']),
  );
}