You are here

function facetapi_get_block_cache_setting in Facet API 7

Same name and namespace in other branches
  1. 7.2 facetapi.block.inc \facetapi_get_block_cache_setting()

Returns block cache settings.

Parameters

$searcher: The machine readable name of searcher.

string $realm_name: The machine readable name of the realm.

Return value

int The constants defined in includes/common.inc, defaults to DRUPAL_NO_CACHE.

See also

includes/common.inc

1 call to facetapi_get_block_cache_setting()
facetapi_get_block_info in ./facetapi.block.inc
Helper function to get block info for all block-like realms.

File

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

Code

function facetapi_get_block_cache_setting($searcher, $realm_name) {
  $name = 'facetapi:block_cache:' . $searcher;
  if ('block' != $realm_name) {
    $name .= ':' . $realm_name;
  }
  return variable_get($name, DRUPAL_NO_CACHE);
}