You are here

function regcode_roles_menu in Registration codes 6

Same name and namespace in other branches
  1. 6.2 regcode_roles/regcode_roles.module \regcode_roles_menu()
  2. 7.2 regcode_roles/regcode_roles.module \regcode_roles_menu()
  3. 7 regcode_roles/regcode_roles.module \regcode_roles_menu()

Implementation of hook_menu()

File

regcode_roles/regcode_roles.module, line 23

Code

function regcode_roles_menu() {
  $items = array();
  $items['admin/user/regcodes/roles'] = array(
    'title' => t('Roles'),
    'description' => t('Automate role assignment'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'regcode_roles_admin',
    ),
    'type' => MENU_LOCAL_TASK,
    'access arguments' => array(
      'administer registration codes',
    ),
    'weight' => 100,
  );
  $items['admin/user/regcodes/roles/delete/%'] = array(
    'page callback' => 'regcode_roles_delete_rule_confirm',
    'page arguments' => array(
      5,
    ),
    'type' => MENU_CALLBACK,
    'access arguments' => array(
      'administer registration codes',
    ),
  );
  return $items;
}