You are here

function regcode_roles_menu in Registration codes 7

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

Implements hook_menu().

File

regcode_roles/regcode_roles.module, line 22
Main functionality of regcode_role module.

Code

function regcode_roles_menu() {
  $items = array();
  $items['admin/config/people/regcode/roles'] = array(
    'title' => 'Roles',
    'description' => '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/config/people/regcode/roles/delete/%'] = array(
    'page callback' => 'regcode_roles_delete_rule_confirm',
    'page arguments' => array(
      6,
    ),
    'type' => MENU_CALLBACK,
    'access arguments' => array(
      'administer registration codes',
    ),
  );
  return $items;
}