You are here

function user_permissions_menu in User Permissions 6

Same name and namespace in other branches
  1. 5 user_permissions.module \user_permissions_menu()
  2. 7 user_permissions.module \user_permissions_menu()

Implementation of hook_menu().

File

./user_permissions.module, line 22

Code

function user_permissions_menu() {
  $items['user/%user/permissions'] = array(
    'title' => 'User Permissions',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'user_permissions_profile_permissions_form',
      1,
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer permissions',
    ),
    'type' => MENU_LOCAL_TASK,
    'file' => 'user.admin.inc',
    'file path' => drupal_get_path('module', 'user'),
  );
  return $items;
}