You are here

public function contextual_range_filter_handler_argument_string_range::options_form in Views Contextual Range Filter 7

Create the options form.

Overrides views_handler_argument_string::options_form

File

views/contextual_range_filter_handler_argument_string_range.inc, line 27
Definition of contextual_range_filter_handler_argument_string_range.

Class

contextual_range_filter_handler_argument_string_range
Argument handler to implement string range arguments.

Code

public function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form['description']['#markup'] = t('Contextual string range filter values are taken from the URL.');
  $form['more']['#collapsed'] = FALSE;
  $form['break_phrase']['#title'] = t('Allow multiple alphabetic ranges');
  $form['break_phrase']['#description'] = t('If selected, multiple ranges may be specified by stringing them together with plus signs. Example: <strong>a--f+q--y</strong>');
  $form['not'] = array(
    '#type' => 'checkbox',
    '#title' => t('Exclude'),
    '#description' => t('Negate the range. If selected, output matching the specified range(s) will be excluded, rather than included.'),
    '#default_value' => !empty($this->options['not']),
    '#fieldset' => 'more',
  );
}