You are here

function facetapi_is_active_searcher in Facet API 7

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

Tests whether a searcher is active or not.

Parameters

string $searcher: The machine readable name of the searcher.

Return value

FacetapiAdapter The adapter object, FALSE if the object can't be loaded.

3 calls to facetapi_is_active_searcher()
current_search_check_visibility in contrib/current_search/current_search.block.inc
Checks whether the block should be displayed.
FacetapiApiFunctions::testActiveSearcher in tests/facetapi.test
Tests the facetapi_*_active_searcher() functions.
facetapi_check_block_visibility in ./facetapi.block.inc
Checks whether the block should be displayed.

File

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

Code

function facetapi_is_active_searcher($searcher) {
  $searchers = facetapi_get_active_searchers();
  return isset($searchers[$searcher]);
}