You are here

function facetapi_set_facet_disabled in Facet API 7.2

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

Disables a facet for this page load only.

Parameters

$searcher: The machine readable name of the searcher.

$realm_name: The machine readable name of the realm, pass NULL for all realms.

$facet_name: The machine readable name of the facet.

$batch_process: A boolean flagging whether batch processing is being performed.

See also

facetapi_set_facet_status()

1 call to facetapi_set_facet_disabled()
FacetapiApiFunctions::testSetFacetStatus in tests/facetapi.test
Tests facetapi_set_facet_status() API functions.

File

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

Code

function facetapi_set_facet_disabled($searcher, $realm_name, $facet_name, $batch_process = FALSE) {
  return facetapi_set_facet_status($searcher, $realm_name, $facet_name, FALSE, $batch_process);
}