You are here

function roleassign_menu in RoleAssign 7

Same name and namespace in other branches
  1. 5 roleassign.module \roleassign_menu()
  2. 6 roleassign.module \roleassign_menu()
  3. 7.2 roleassign.module \roleassign_menu()

Implements hook_menu().

Adds <code>role assign</code> to <code>Administration » People</code>.

Return value

array

File

./roleassign.module, line 38
Allows site administrators to further delegate the task of managing user's roles.

Code

function roleassign_menu() {
  $items = array();
  $items['admin/people/permissions/roleassign'] = array(
    'title' => 'Role assign',
    'description' => "Define the set of roles that can be assigned by admins with the 'Assign roles' permission.",
    'type' => MENU_LOCAL_TASK | MENU_VISIBLE_IN_TREE,
    'file' => 'roleassign.admin.inc',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'roleassign_admin_form',
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer permissions',
    ),
  );
  return $items;
}