You are here

function regcode_menu in Registration codes 6

Same name and namespace in other branches
  1. 5.3 regcode.module \regcode_menu()
  2. 5 regcode.module \regcode_menu()
  3. 6.2 regcode.module \regcode_menu()
  4. 7.2 regcode.module \regcode_menu()
  5. 7 regcode.module \regcode_menu()

Implementation of hook_menu().

File

./regcode.module, line 50

Code

function regcode_menu() {
  $items = array();
  $items['admin/user/regcodes'] = array(
    'title' => 'Registration codes',
    'description' => 'Settings for registration code functionality.',
    'file' => 'regcode.admin.php',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'regcode_admin_list',
    ),
    'access arguments' => array(
      'administer registration codes',
    ),
  );
  $items['admin/user/regcodes/list'] = array(
    'title' => 'List',
    'description' => 'List of registration codes',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => 10,
  );
  $items['admin/user/regcodes/create'] = array(
    'title' => 'Create',
    'description' => 'Create a registration code',
    'type' => MENU_LOCAL_TASK,
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'regcode_admin_create',
    ),
    'access arguments' => array(
      'administer registration codes',
    ),
    'file' => 'regcode.admin.php',
    'weight' => 20,
  );
  $items['admin/user/regcodes/settings'] = array(
    'title' => 'Settings',
    'description' => 'Settings for registration code functionality.',
    'type' => MENU_LOCAL_TASK,
    'access arguments' => array(
      'administer registration codes',
    ),
    'page arguments' => array(
      'regcode_admin_settings',
    ),
    'weight' => 30,
  );
  $items['admin/user/regcodes/import'] = array(
    'title' => 'Import',
    'description' => 'Import registration codes',
    'file' => 'regcode.admin.php',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'regcode_admin_import',
    ),
    'access arguments' => array(
      'administer registration codes',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 40,
  );
  $items['admin/user/regcodes/export'] = array(
    'title' => 'Export',
    'description' => 'Export registration codes',
    'file' => 'regcode.admin.php',
    'page callback' => 'regcode_admin_export',
    'access arguments' => array(
      'administer registration codes',
    ),
    'type' => MENU_CALLBACK,
    'weight' => 50,
  );
  $items['admin/user/regcodes/delete'] = array(
    'file' => 'regcode.admin.php',
    'page callback' => 'regcode_admin_delete_confirm',
    'access argumenajax_base_page_themets' => array(
      'administer registration codes',
    ),
    'page arguments' => array(
      4,
    ),
    'type' => MENU_CALLBACK,
  );
  $items['admin/user/regcodes/autocomplete'] = array(
    'page callback' => 'regcode_admin_ajax_categories',
    'file' => 'regcode.admin.php',
    'type' => MENU_CALLBACK,
    'access arguments' => array(
      'administer registration codes',
    ),
  );
  return $items;
}