public function SearchApiViewsHandlerFilterOptions::expose_form in Search API 7
Add the "reduce" option to the exposed form.
Overrides views_handler_filter::expose_form
File
- contrib/
search_api_views/ includes/ handler_filter_options.inc, line 109 - Contains the SearchApiViewsHandlerFilterOptions class.
Class
- SearchApiViewsHandlerFilterOptions
- Views filter handler for fields with a limited set of possible values.
Code
public function expose_form(&$form, &$form_state) {
parent::expose_form($form, $form_state);
$form['expose']['reduce'] = array(
'#type' => 'checkbox',
'#title' => t('Limit list to selected items'),
'#description' => t('If checked, the only items presented to the user will be the ones selected here.'),
'#default_value' => !empty($this->options['expose']['reduce']),
);
}