You are here

function user_permissions_menu in User Permissions 7

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

Implements hook_menu()

File

./user_permissions.module, line 33

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,
  );
  return $items;
}