function permissions_lock_menu in Permissions Lock 7
Implements hook_menu().
File
- ./
permissions_lock.module, line 44 - Lock permissions on the permissions administration pages for certain roles
Code
function permissions_lock_menu() {
$items['admin/people/permissions/list'] = array(
'title' => 'Permissions',
'access arguments' => array(
'manage permission locks',
),
'weight' => -10,
'type' => MENU_DEFAULT_LOCAL_TASK,
'file' => 'user.admin.inc',
'file path' => drupal_get_path('module', 'user'),
);
$items['admin/people/permissions/lock'] = array(
'title' => 'Lock permissions',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'permissions_lock_settings_form',
),
'access arguments' => array(
'manage permission locks',
),
'type' => MENU_LOCAL_TASK,
);
return $items;
}