You are here

function regcode_voucher_menu in Registration codes 6.2

Same name and namespace in other branches
  1. 6 regcode_voucher/regcode_voucher.module \regcode_voucher_menu()
  2. 7.2 regcode_voucher/regcode_voucher.module \regcode_voucher_menu()
  3. 7 regcode_voucher/regcode_voucher.module \regcode_voucher_menu()

Implementation of hook_menu().

File

regcode_voucher/regcode_voucher.module, line 7

Code

function regcode_voucher_menu() {
  $items = array();
  $items['admin/user/regcode/voucher'] = array(
    'title' => 'Voucher',
    'description' => 'Settings for using registration codes after registration',
    'type' => MENU_LOCAL_TASK,
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'regcode_voucher_admin',
    ),
    'access arguments' => array(
      'administer registration codes',
    ),
    'weight' => 20,
  );
  $items['user/%user/regcode'] = array(
    'title' => 'Voucher',
    'description' => 'Enter a voucher code',
    'type' => MENU_LOCAL_TASK,
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'regcode_voucher',
    ),
    'access callback' => '_regcode_voucher_accesscheck',
    'access arguments' => array(
      1,
      'tab',
    ),
    'weight' => 20,
  );
  return $items;
}