You are here

protected function SearchApiViewsHandlerFilterTaxonomyTerm::reduce_value_options in Search API 7

Reduces the available exposed options according to the selection.

1 call to SearchApiViewsHandlerFilterTaxonomyTerm::reduce_value_options()
SearchApiViewsHandlerFilterTaxonomyTerm::value_form in contrib/search_api_views/includes/handler_filter_taxonomy_term.inc
Provide a form for setting the filter value.

File

contrib/search_api_views/includes/handler_filter_taxonomy_term.inc, line 160
Contains SearchApiViewsHandlerFilterTaxonomyTerm.

Class

SearchApiViewsHandlerFilterTaxonomyTerm
Views filter handler class for taxonomy term entities.

Code

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