function terms_of_use_menu in Terms of Use 6
Same name and namespace in other branches
- 7 terms_of_use.module \terms_of_use_menu()
Implementation of hook_menu().
File
- ./
terms_of_use.module, line 13 - Adds Terms of Use to the 'user_register' form.
Code
function terms_of_use_menu() {
$items = array();
$items['admin/settings/terms_of_use'] = array(
'description' => 'Add Terms of Use to the registration page.',
'title' => 'Terms of Use',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'terms_of_use_admin_settings',
),
'access arguments' => array(
'administer site configuration',
),
);
$items['node/autocomplete'] = array(
'title' => 'Autocomplete node title',
'page callback' => 'terms_of_use_autocomplete',
'access arguments' => array(
'access content',
),
'type' => MENU_CALLBACK,
'file' => 'terms_of_use.pages.inc',
);
$items['terms_of_use/js'] = array(
'page callback' => 'terms_of_use_js',
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_CALLBACK,
'file' => 'terms_of_use.pages.inc',
);
return $items;
}