function disclaimer_menu in Disclaimer 7
Same name and namespace in other branches
- 6.2 disclaimer.module \disclaimer_menu()
- 6 disclaimer.module \disclaimer_menu()
Implements hook_menu().
File
- ./
disclaimer.module, line 10 - Create and show disclaimer for your site.
Code
function disclaimer_menu() {
$items = array();
// Autocomplete search node.
$items['node/autocomplete'] = array(
'title' => 'Autocomplete for nodes',
'page callback' => '_disclaimer_node_autocomplete',
'access arguments' => array(
'administer disclaimer settings',
),
'type' => MENU_CALLBACK,
);
// Disclaimer module settings.
$items['admin/config/system/disclaimer'] = array(
'title' => 'Disclaimer',
'description' => 'Administer Disclaimer settings.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'disclaimer_admin_settings',
),
'access callback' => 'user_access',
'access arguments' => array(
'administer disclaimer settings',
),
'file' => 'disclaimer.admin.inc',
);
return $items;
}