You are here

function _role_delegation_make_perm in Role Delegation 6

Same name and namespace in other branches
  1. 5 role_delegation.module \_role_delegation_make_perm()

Returns the delegation permission for a role.

5 calls to _role_delegation_make_perm()
role_delegation_form_user_admin_role_submit in ./role_delegation.module
Submit function for the user_admin_role form: When a role is renamed or deleted, rename or delete the permission to assign that role.
role_delegation_perm in ./role_delegation.module
Implementation of hook_perm().
role_delegation_roles_form in ./role_delegation.module
Provides a form for assigning roles to the current user.
role_delegation_user in ./role_delegation.module
Implementation of hook_user().
role_delegation_user_operations in ./role_delegation.module
Implementation of hook_user_operations().

File

./role_delegation.module, line 156
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_make_perm($role) {
  return "assign {$role} role";
}