You are here

function facetapi_is_active_searcher in Facet API 6.3

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

Tests whether a searcher is active or not.

Parameters

$searcher: The machine readable name of the searcher.

Return value

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

2 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.
facetapi_check_block_visibility in ./facetapi.block.inc
Checks whether the block should be displayed.

File

./facetapi.module, line 952
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]);
}