public function SarniaViewsHandlerSort::options_form in Sarnia 7
Basic options for all sort criteria
Overrides views_handler_sort::options_form
File
- handlers/
handler_sort.inc, line 14
Class
- SarniaViewsHandlerSort
- Really basic sort handler for sorting 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_options($this->definition['search_api_index'], 'getSortFields'),
'#default_value' => $this->options['solr_property'],
);
sarnia_element_add_combobox($form['solr_property']);
}