You are here

function regcode_menu in Registration codes 5

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

Define menu items and page callbacks.

Parameters

$may_cache: A boolean indicating whether cacheable menu items should be returned.

Return value

An array of menu items. Each menu item is an associative array.

File

./regcode.module, line 58
regcode.module

Code

function regcode_menu($may_cache) {
  $items = array();
  $items[] = array(
    'path' => 'admin/settings/regcode',
    'title' => t('Registration code'),
    'callback' => 'drupal_get_form',
    'callback arguments' => array(
      'regcode_admin_settings',
    ),
    'access' => user_access('administer registration codes'),
    'description' => t('Require a registration code on the registration page.'),
  );
  return $items;
}