function simple_cookie_compliance_menu in Simple Cookie Compliance 6
Same name and namespace in other branches
- 7 simple_cookie_compliance.module \simple_cookie_compliance_menu()
Implements hook_menu().
File
- ./
simple_cookie_compliance.module, line 10 - All the necessary functions for configuring and output.
Code
function simple_cookie_compliance_menu() {
$items = array();
$items['admin/settings/simple-cookie-compliance'] = array(
'title' => 'Cookie Compliance Settings',
'description' => 'Settings for the cookie compliance window that is used.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'_simple_cookie_compliance_settings_form',
),
'access arguments' => array(
'administer cookie compliance',
),
'type' => MENU_NORMAL_ITEM,
);
$items['simple_cookie_compliance/js'] = array(
'title' => 'Cookie Compliance Callback',
'page callback' => 'simple_cookie_compliance_js',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
$items['simple_cookie_compliance/has-cookie'] = array(
'title' => 'Cookie Compliance Callback',
'page callback' => 'simple_cookie_compliance_has_cookie',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
return $items;
}