function role_delegation_menu in Role Delegation 6
Same name and namespace in other branches
- 5 role_delegation.module \role_delegation_menu()
- 7 role_delegation.module \role_delegation_menu()
Implementation of hook_menu().
File
- ./
role_delegation.module, line 39 - 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_menu() {
global $user;
$items = array();
$items['user/%user/roles'] = array(
'title' => 'Roles',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'role_delegation_roles_form',
1,
),
'access callback' => 'role_delegation_access',
'type' => MENU_LOCAL_TASK,
);
return $items;
}