You are here

function facetapi_add_active_searcher in Facet API 7.2

Same name and namespace in other branches
  1. 6.3 facetapi.module \facetapi_add_active_searcher()
  2. 7 facetapi.module \facetapi_add_active_searcher()

Adds an active searcher to the list.

Parameters

$searcher: The machine readable name of the searcher.

See also

facetapi_get_active_searchers();

2 calls to facetapi_add_active_searcher()
FacetapiAdapter::addActiveFilters in plugins/facetapi/adapter.inc
Allows the backend to add facet queries to its native query object.
FacetapiApiFunctions::testActiveSearcher in tests/facetapi.test
Tests the facetapi_*_active_searcher() functions.

File

./facetapi.module, line 917
An abstracted facet API that can be used by various search backends.

Code

function facetapi_add_active_searcher($searcher) {
  $searchers =& drupal_static('facetapi_active_searchers', array());
  $searchers[$searcher] = $searcher;
}