public function SarniaViewsHandlerArgument::options_form in Sarnia 7
Build the options form.
Overrides SearchApiViewsHandlerArgument::options_form
1 call to SarniaViewsHandlerArgument::options_form()
- SarniaViewsHandlerArgumentId::options_form in handlers/
handler_argument_id.inc - Add a field to the options form to select a solr property to use as the name of the argument.
1 method overrides SarniaViewsHandlerArgument::options_form()
- SarniaViewsHandlerArgumentId::options_form in handlers/
handler_argument_id.inc - Add a field to the options form to select a solr property to use as the name of the argument.
File
- handlers/
handler_argument.inc, line 16
Class
- SarniaViewsHandlerArgument
- Really basic argument handler for filtering Solr documents in Views.
Code
public function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['solr_property'] = array(
'#type' => 'select',
'#title' => t('Solr property'),
'#options' => sarnia_index_get_filter_options($this->definition['search_api_index']),
'#default_value' => $this->options['solr_property'],
);
sarnia_element_add_combobox($form['solr_property']);
}