function regcode_menu in Registration codes 5
Same name and namespace in other branches
- 5.3 regcode.module \regcode_menu()
- 6.2 regcode.module \regcode_menu()
- 6 regcode.module \regcode_menu()
- 7.2 regcode.module \regcode_menu()
- 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;
}