You are here

function facetapi_filter_active in Facet API 7.2

Same name and namespace in other branches
  1. 6.3 plugins/facetapi/filter.inc \facetapi_filter_active()
  2. 7 plugins/facetapi/filter.inc \facetapi_filter_active()

Callback for array_filter() that strips out active items.

Parameters

array $build: The facet item's render array.

Return value

bool A boolean flagging whether the value should remain in the array.

1 string reference to 'facetapi_filter_active'
FacetapiFilterActiveItems::execute in plugins/facetapi/filter.inc
Implements FacetapiFilter::execute().

File

plugins/facetapi/filter.inc, line 127
Base filter class and core implementations.

Code

function facetapi_filter_active(array $build) {
  return empty($build['#active']);
}