function facetapi_set_facet_enabled in Facet API 6.3
Same name and namespace in other branches
- 7.2 facetapi.module \facetapi_set_facet_enabled()
- 7 facetapi.module \facetapi_set_facet_enabled()
Enables a facet for this page load only.
If you are enabling facets in the block realm, you will have to force the delta mapping so that the block can be configured even if it is disabled via the Facet API interface. Otherwise you will not be able to assign the block to a region because it won't be available in admin/build/block.
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
hook_facetapi_force_delta_mapping().
File
- ./
facetapi.module, line 1122 - An abstracted facet API that can be used by various search backends.
Code
function facetapi_set_facet_enabled($searcher, $realm_name, $facet_name, $batch_process = FALSE) {
return facetapi_set_facet_status($searcher, $realm_name, $facet_name, TRUE, $batch_process);
}