You are here

function apachesolr_views_handler_argument::options_form in Apache Solr Views 6

File

handlers/apachesolr_views_handler_argument.inc, line 32

Class

apachesolr_views_handler_argument
Class that allows searching the site with Apache Solr through a view.

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);

  // allow for , delimited values
  $form['break_phrase'] = array(
    '#type' => 'checkbox',
    '#title' => t('Allow multiple terms per argument.'),
    '#description' => t('If selected, users can enter multiple arguments in the form of 1,2,3.'),
    '#default_value' => !empty($this->options['break_phrase']),
  );
  $form['not'] = array(
    '#type' => 'checkbox',
    '#title' => t('Exclude the argument'),
    '#description' => t('If selected, the numbers entered in the argument will be excluded rather than limiting the view.'),
    '#default_value' => !empty($this->options['not']),
  );
}