You are here

function facetapi_build_realm in Facet API 6.3

Same name and namespace in other branches
  1. 7.2 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 1003
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();
}