function site_disclaimer_menu in Site Disclaimer 6
Same name and namespace in other branches
- 7 site_disclaimer.module \site_disclaimer_menu()
Implementation of hook_menu().
File
- ./
site_disclaimer.module, line 39 - This module adds Site Disclaimer to the registration page.
Code
function site_disclaimer_menu() {
$items = array();
$items[SITE_DISCLAIMER_SETTINGS_PATH] = array(
'description' => 'Add Site Disclaimer to the registration page.',
'title' => 'Site Disclaimer',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'site_disclaimer_admin_settings',
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'site_disclaimer.admin.inc',
);
$items['site_disclaimer/autocomplete'] = array(
'title' => 'Autocomplete node title',
'page callback' => 'site_disclaimer_autocomplete',
'access arguments' => array(
'access content',
),
'type' => MENU_CALLBACK,
'file' => 'site_disclaimer.admin.inc',
);
$items['site_disclaimer/js'] = array(
'page callback' => 'site_disclaimer_js',
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_CALLBACK,
'file' => 'site_disclaimer.admin.inc',
);
$items[SITE_DISCLAIMER_ACCEPT_PATH] = array(
'page callback' => 'drupal_get_form',
'page arguments' => array(
'site_disclaimer_confirm',
),
'access callback' => TRUE,
'type' => MENU_CALLBACK,
'file' => 'site_disclaimer.pages.inc',
);
return $items;
}