You are here

protected function SearchApiViewsHandlerFilterOptions::reduce_value_options in Search API 7

Reduce the options according to the selection.

1 call to SearchApiViewsHandlerFilterOptions::reduce_value_options()
SearchApiViewsHandlerFilterOptions::value_form in contrib/search_api_views/includes/handler_filter_options.inc
Provide a form for setting options.

File

contrib/search_api_views/includes/handler_filter_options.inc, line 132
Contains the SearchApiViewsHandlerFilterOptions class.

Class

SearchApiViewsHandlerFilterOptions
Views filter handler for fields with a limited set of possible values.

Code

protected function reduce_value_options() {
  foreach ($this->value_options as $id => $option) {
    if (!isset($this->options['value'][$id])) {
      unset($this->value_options[$id]);
    }
  }
  return $this->value_options;
}