You are here

function facetapi_build_realm in Facet API 7.2

Same name and namespace in other branches
  1. 6.3 facetapi.module \facetapi_build_realm()
  2. 7 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

$searcher: The machine readable name of the searcher.

$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 955
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();
}