function authcache_enum_authcache_enum_key_property_info in Authenticated User Page Caching (Authcache) 7.2
Implements hook_authcache_enum_key_property_info().
1 call to authcache_enum_authcache_enum_key_property_info()
- AuthcacheEnumKeysTestCase::testCustomAuthenticatedKeys in modules/
authcache_enum/ lib/ Drupal/ authcache_enum/ Tests/ AuthcacheEnumKeysTestCase.php - Test authenticated key customization.
File
- modules/
authcache_enum/ authcache_enum.module, line 189 - Provides methods for computing and enumerating authcache keys
Code
function authcache_enum_authcache_enum_key_property_info() {
global $base_root;
$func = variable_get('authcache_enum_role_combine', '_authcache_enum_default_role_combine');
return array(
'base_root' => array(
'name' => t('The root URL of the host, excluding the path'),
'choices' => array(
$base_root,
),
),
'roles' => array(
'name' => t('User roles'),
'choices' => call_user_func($func),
),
);
}