function ctools_perm_ctools_access_summary
Provide a summary description based upon the checked roles.
1 string reference to 'ctools_perm_ctools_access_summary'
File
-
plugins/
access/ perm.inc, line 65
Code
function ctools_perm_ctools_access_summary($conf, $context) {
if (!isset($conf['perm'])) {
return t('Error, unset permission');
}
$permissions = module_invoke_all('permission');
return t('@identifier has "@perm"', array(
'@identifier' => $context->identifier,
'@perm' => $permissions[$conf['perm']]['title'],
));
}