You are here

function regcode_og_menu in Registration codes 6.2

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

Implementation of hook_menu()

File

regcode_og/regcode_og.module, line 22

Code

function regcode_og_menu() {
  $items = array();
  $items['admin/user/regcode/og'] = array(
    'title' => t('Organic Groups'),
    'description' => t('Automate organic group assignment'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'regcode_og_admin',
    ),
    'type' => MENU_LOCAL_TASK,
    'access arguments' => array(
      'administer registration codes',
    ),
    'weight' => 101,
  );
  $items['admin/user/regcode/og/delete/%'] = array(
    'page callback' => 'regcode_og_delete_rule_confirm',
    'page arguments' => array(
      5,
    ),
    'type' => MENU_CALLBACK,
    'access arguments' => array(
      'administer registration codes',
    ),
  );
  return $items;
}