You are here

function facetapi_add_active_searcher in Facet API 7

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

Adds an active searcher to the list.

Parameters

string $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 962
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;
}