function og_perm_ctools_access_summary in Organic groups 7
Same name and namespace in other branches
- 7.2 plugins/access/og_perm.inc \og_perm_ctools_access_summary()
Provide a summary description based upon the checked roles.
1 string reference to 'og_perm_ctools_access_summary'
- og_perm.inc in plugins/
access/ og_perm.inc - Plugin to provide access control based on user permission strings in a group.
File
- plugins/
access/ og_perm.inc, line 70 - Plugin to provide access control based on user permission strings in a group.
Code
function og_perm_ctools_access_summary($conf, $context) {
list($user_context, $og_group_context) = $context;
if (!isset($conf['perm'])) {
return t('Error, unset permission');
}
$permissions = og_get_permissions();
return t('@identifier has "@perm in @group group"', array(
'@identifier' => $user_context->identifier,
'@perm' => $permissions[$conf['perm']]['title'],
'@group' => $og_group_context->identifier,
));
}