protected function SearchApiMultiViewsHandlerFilterOptions::get_value_options in Search API Multi-Index Searches 7
Fills the value_options property with all possible options.
Overrides SearchApiViewsHandlerFilterOptions::get_value_options
File
- views/
handler_filter_options.inc, line 45 - Contains the SearchApiMultiViewsHandlerFilterOptions class.
Class
- SearchApiMultiViewsHandlerFilterOptions
- Views filter handler for fields with a limited set of possible values.
Code
protected function get_value_options() {
if ($this->real_field == 'search_api_multi_index') {
$this->value_options = array();
foreach (search_api_index_load_multiple(FALSE, array(
'enabled' => 1,
)) as $index) {
$this->value_options[$index->machine_name] = check_plain($index->name);
}
}
else {
parent::get_value_options();
}
}