You are here

function facetapi_build_delta in Facet API 7.2

Same name and namespace in other branches
  1. 6.3 facetapi.block.inc \facetapi_build_delta()
  2. 7 facetapi.block.inc \facetapi_build_delta()

Build a delta from the searcher, realm name, and facet name.

Parameters

$searcher: The machine readable name of the searcher.

$realm_name: The machine readable name of the realm.

$facet_name: The machine readable name of the facet.

Return value

A string containing the raw delta.

3 calls to facetapi_build_delta()
FacetapiTestCase::facetapiEnableFacetBlock in tests/facetapi.test
Enables a facet block via the UI.
facetapi_get_block_info in ./facetapi.block.inc
Helper function to get block info for all block-like realms.
facetapi_get_delta_map in ./facetapi.block.inc
Returns a cached delta map of hashes to names.

File

./facetapi.block.inc, line 240
Block realm code and hook implementations.

Code

function facetapi_build_delta($searcher, $realm_name, $facet_name) {
  return $searcher . ':' . $realm_name . ':' . urlencode($facet_name);
}