function cookiebot_menu in Cookiebot - Cookie consent, Cookie monitoring and Cookie control 7
Implements hook_menu().
File
- ./
cookiebot.module, line 25 - The Cookiebot main module file.
Code
function cookiebot_menu() {
$items = array();
$items['admin/config/system/cookiebot'] = array(
'title' => 'Cookiebot configuration',
'description' => 'Configure your Cookiebot integration, like the Domain Group ID.',
'access callback' => 'user_access',
'access arguments' => array(
'administer cookiebot',
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'cookiebot_settings_form',
),
'type' => MENU_NORMAL_ITEM,
'file' => 'cookiebot.admin.inc',
);
// Add a special menu item for the JavaScript powered Cookiebot renew link.
// This is not a page that can be visited, but this item makes it possible
// to place this special link in Drupal's menus.
$items['<cookiebot-renew>'] = array(
'page callback' => 'drupal_not_found',
// Since this is a JavaScript only link everybody has access.
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
return $items;
}