function facetapi_filter_active in Facet API 6.3
Same name and namespace in other branches
- 7.2 plugins/facetapi/filter.inc \facetapi_filter_active()
- 7 plugins/facetapi/filter.inc \facetapi_filter_active()
Callback for array_filter() that strips out active items.
Parameters
$build: The facet item's render array.
Return value
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 - Filters active facet items.
File
- plugins/
facetapi/ filter.inc, line 99 - Base filter class and implementation.
Code
function facetapi_filter_active(array $build) {
return empty($build['#active']);
}