function facetapi_build_realm in Facet API 7
Same name and namespace in other branches
- 6.3 facetapi.module \facetapi_build_realm()
- 7.2 facetapi.module \facetapi_build_realm()
Builds a facet realm.
Converts the facet data into a render array suitable for passing to the drupal_render() function.
Parameters
string $searcher: The machine readable name of the searcher.
string $realm_name: The machine readable name of the realm.
Return value
array The realm's render array.
1 call to facetapi_build_realm()
- facetapi_block_view in ./
facetapi.block.inc - Implements hook_block_view().
File
- ./
facetapi.module, line 1000 - An abstracted facet API that can be used by various search backends.
Code
function facetapi_build_realm($searcher, $realm_name) {
$adapter = facetapi_adapter_load($searcher);
return $adapter ? $adapter
->buildRealm($realm_name) : array();
}