You are here

function _authcache_p13n_admin_cache_granularity in Authenticated User Page Caching (Authcache) 7.2

Return a list of human readable cache granularity properties.

1 call to _authcache_p13n_admin_cache_granularity()
authcache_p13n_admin_markup_configs in modules/authcache_p13n/authcache_p13n.admin.inc
Display a list of markup substitution configurations.

File

modules/authcache_p13n/authcache_p13n.admin.inc, line 243
Administrative interface for the authcache personalization module.

Code

function _authcache_p13n_admin_cache_granularity($granularity) {
  $result = array();
  if ($granularity
    ->is(AuthcacheP13nCacheGranularity::PER_USER)) {
    $result[] = t('Per user');
  }
  if ($granularity
    ->is(AuthcacheP13nCacheGranularity::PER_PAGE)) {
    $result[] = t('Per page');
  }
  return $result;
}