You are here

function roleassign_menu in RoleAssign 5

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

Implementation of hook_menu().

Adds <code>role assign</code> to <code>administer » user management</code>.

File

./roleassign.module, line 75

Code

function roleassign_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'admin/user/roleassign',
      'title' => t('Role assign'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'roleassign_admin',
      ),
      'description' => t('Allows site administrators to further delegate the task of managing user\'s roles.'),
      'access' => user_access('administer access control'),
    );
  }
  return $items;
}