You are here

function role_delegation_menu in Role Delegation 7

Same name and namespace in other branches
  1. 5 role_delegation.module \role_delegation_menu()
  2. 6 role_delegation.module \role_delegation_menu()

Implements hook_menu().

File

./role_delegation.module, line 57
This module allows site administrators to grant some roles the authority to change roles assigned to users, without them needing the 'administer access control' permission.

Code

function role_delegation_menu() {
  $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;
}