function roleassign_permission in RoleAssign 7
Same name and namespace in other branches
- 7.2 roleassign.module \roleassign_permission()
Implements hook_permission().
While editing a user's account information, a user with the <code>assign roles</code> permission will be able to select roles for the user from a set of available roles. Roles available are configured by the site administrator.
Return value
array
1 call to roleassign_permission()
- _roleassign_help in ./
roleassign.admin.inc - Really implements hook_help().
File
- ./
roleassign.module, line 19 - Allows site administrators to further delegate the task of managing user's roles.
Code
function roleassign_permission() {
$perm = user_permission();
$perm = $perm['administer users']['title'];
return array(
'assign roles' => array(
'title' => t('Assign roles'),
'description' => t('Allow users with the %Administer_users permission to assign a restricted set of roles.', array(
'%Administer_users' => $perm,
)),
'restrict access' => TRUE,
),
);
}