function facetapi_requirement_facet_hierarchical in Facet API 7
Same name and namespace in other branches
- 6.3 facetapi.requirements.inc \facetapi_requirement_facet_hierarchical()
- 7.2 facetapi.requirements.inc \facetapi_requirement_facet_hierarchical()
Checks whether the facet is hierarchical.
Parameters
array $realm: The realm definition as returned by facetapi_realm_load().
array $facet: The facet definition as returned by facetapi_facet_load().
$option: TRUE if the facet should be hierarchical, FALSE if it should be flat.
Return value
TRUE if the hierarchical status matches $option, FALSE otherwise.
File
- ./
facetapi.requirements.inc, line 163 - Requirement checking callbacks.
Code
function facetapi_requirement_facet_hierarchical(array $realm, array $facet, $option) {
$options = array(
'hierarchy callback' => (bool) $option,
);
return facetapi_requirement_facet_property_set($realm, $facet, $options);
}