You are here

public function availability_calendar_handler_filter_sql_date::value_form in Availability Calendars 7.5

Overrides parent method to change the help on the type selector.

Overrides views_handler_filter_date::value_form

File

views/availability_calendar_handler_filter_sql_date.inc, line 11

Class

availability_calendar_handler_filter_sql_date
Defines a filter handler for sql date types.

Code

public function value_form(&$form, &$form_state) {
  parent::value_form($form, $form_state);
  if (isset($form['value']['type']['#options'])) {
    $form['value']['type']['#options']['date'] = t('A date in any machine readable format. CCYY-MM-DD is preferred.');
    $form['value']['type']['#options']['offset'] = t('An offset from the current date such as "!example1" or "!example2"', array(
      '!example1' => '+1 day',
      '!example2' => '-2 weeks',
    ));
  }
}