You are here

function duplicate_role_menu in Duplicate role 6

Same name and namespace in other branches
  1. 6.2 duplicate_role.module \duplicate_role_menu()
  2. 7 duplicate_role.module \duplicate_role_menu()

Implementation of hook_menu().

File

./duplicate_role.module, line 34

Code

function duplicate_role_menu() {
  $admin_access = user_access('administer duplicate role');
  $items = array();
  $items[] = array(
    'path' => 'admin/user/duplirole',
    'title' => t('Duplicate Role'),
    'description' => t('Duplicate an existing role'),
    'callback' => 'drupal_get_form',
    'callback arguments' => 'duplicate_role_form',
    'access' => $admin_access,
    'type' => MENU_NORMAL_ITEM,
  );
  return $items;
}