function role_delegation_perm in Role Delegation 6
Same name and namespace in other branches
- 5 role_delegation.module \role_delegation_perm()
Implementation of hook_perm().
1 call to role_delegation_perm()
- role_delegation_access in ./
role_delegation.module - Access callback for menu hook.
File
- ./
role_delegation.module, line 27 - This module allows site administrators to grant some roles the authority to assign selected roles to users, without them needing the 'administer access control' permission.
Code
function role_delegation_perm() {
$roles = _role_delegation_roles();
$perms = array(
'assign all roles',
);
foreach ($roles as $role) {
$perms[] = _role_delegation_make_perm($role);
}
return $perms;
}