You are here

function timefield_handler_filter_timefield_duration::options_form in Timefield 7

Provide the basic form which calls through to subforms.

If overridden, it is best to call through to the parent, or to at least make sure all of the functions in this form are called.

Overrides views_handler_filter::options_form

File

views/timefield_handler_filter_timefield_duration.inc, line 24
Contains the duration filter handler.

Class

timefield_handler_filter_timefield_duration
@file Contains the duration filter handler.

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $opts = _timefield_duration_options();
  array_pop($opts);
  $form['duration_unit'] = array(
    '#title' => t('Unit of Filter Value'),
    '#type' => 'select',
    '#options' => $opts,
    '#default_value' => $this->duration_unit,
    '#description' => t('This will be the unit of filtering everywhere it is used on this filter.'),
    '#weight' => -100,
  );
}