function duplicate_role_menu in Duplicate role 7
Same name and namespace in other branches
- 6.2 duplicate_role.module \duplicate_role_menu()
- 6 duplicate_role.module \duplicate_role_menu()
Implements hook_menu().
File
- ./
duplicate_role.module, line 30
Code
function duplicate_role_menu() {
$items = array();
$items['admin/people/duplicate-role'] = array(
'title' => 'Duplicate role',
'description' => 'A module that duplicates an existing role and its permissions.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'duplicate_role_form',
),
'access arguments' => array(
'administer duplicate role',
),
'type' => MENU_LOCAL_TASK,
'tab_parent' => 'admin/people/permissions',
);
return $items;
}