You are here

function facetapi_realm_load in Facet API 6

Same name and namespace in other branches
  1. 6.3 facetapi.module \facetapi_realm_load()
  2. 7.2 facetapi.module \facetapi_realm_load()
  3. 7 facetapi.module \facetapi_realm_load()

Returns a single realm definition.

Parameters

$realm_name: A string contaiing the machine readable name of the realm.

Return value

An array containing the realm definition, FALSE if $realm_name is not valid.

1 call to facetapi_realm_load()
facetapi_realm_build in ./facetapi.module
Builds a facet realm, in other words converts the facet values to some normalized value.

File

./facetapi.module, line 143
An abstracted facet API that can be used by various search backens.

Code

function facetapi_realm_load($realm_name) {
  $realms = facetapi_realms_get();
  return isset($realms[$realm_name]) ? $realms[$realm_name] : FALSE;
}