Added info about cookies

This commit is contained in:
Manuel Cillero 2017-10-05 19:38:44 +02:00
parent 262f0b730b
commit 9777b4c1ba
9 changed files with 87 additions and 417 deletions

View file

@ -508,7 +508,7 @@ function storm_init() {
function storm_menu() {
$items = array();
// Redirect to SuiteCRM:
// Redirect to SuiteCRM.
$items['suitecrm'] = array(
'title' => 'SuiteCRM',
'page callback' => 'storm_suitecrm_callback',
@ -516,6 +516,7 @@ function storm_menu() {
'type' => MENU_CALLBACK,
);
// SuiteDesk options.
$dashboard_types = module_invoke_all('storm_dashboard_types');
foreach ($dashboard_types as $type => $type_info) {
if (isset($type_info['url'])) {
@ -568,6 +569,7 @@ function storm_menu() {
'type' => MENU_CALLBACK,
);
// Admin options.
$items['admin/settings/suitedesk'] = array(
'title' => 'SuiteDesk',
'description' => 'SuiteDesk administration page',
@ -576,7 +578,6 @@ function storm_menu() {
'access arguments' => array('Storm: access administration pages'),
'type' => MENU_NORMAL_ITEM,
);
$items['admin/settings/suitedesk/suitedesk'] = array(
'title' => 'SuiteDesk',
'description' => 'SuiteDesk administration page',
@ -584,7 +585,6 @@ function storm_menu() {
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -100,
);
$items['admin/settings/suitedesk/notify'] = array(
'title' => 'Notification settings',
'description' => 'Adjust settings for new SuiteDesk content notifications sent by e-mail.',
@ -594,7 +594,6 @@ function storm_menu() {
'access arguments' => array('Storm: administer notify'),
'type' => MENU_NORMAL_ITEM,
);
$items['admin/user/user/notify'] = array(
'title' => 'SuiteDesk notifications',
'page callback' => 'drupal_get_form',
@ -603,15 +602,8 @@ function storm_menu() {
'access arguments' => array('create users'),
'type' => MENU_LOCAL_TASK,
);
/*
$items['admin/settings/chamilo'] = array(
'title' => 'Chamilo',
'description' => 'Configure integration settings with Chamilo.',
'page callback' => '_storm_chamilo_settings',
'access callback' => 'user_access',
'access arguments' => array('administer chamilo'),
);
*/
// Attributes management.
$items['attributes'] = array(
'title' => 'Attributes',
'description' => 'SuiteDesk attributes',
@ -621,7 +613,6 @@ function storm_menu() {
'type' => MENU_NORMAL_ITEM,
'weight' => 11,
);
$items['attributes/add'] = array(
'title' => 'Add a new attribute',
'description' => 'SuiteDesk attributes',
@ -631,7 +622,6 @@ function storm_menu() {
'file' => 'storm.admin.inc',
'type' => MENU_CALLBACK,
);
$items['attributes/edit/%'] = array(
'title' => 'Edit an attribute',
'description' => 'SuiteDesk attributes',
@ -641,7 +631,6 @@ function storm_menu() {
'file' => 'storm.admin.inc',
'type' => MENU_CALLBACK,
);
$items['attributes/delete/%'] = array(
'title' => 'Delete an attribute',
'description' => 'SuiteDesk attributes',
@ -651,7 +640,6 @@ function storm_menu() {
'file' => 'storm.admin.inc',
'type' => MENU_CALLBACK,
);
$items['storm/attributes/domain/autocomplete'] = array(
'title' => 'List of attributes',
'description' => 'SuiteDesk attributes',
@ -662,6 +650,7 @@ function storm_menu() {
'type' => MENU_CALLBACK,
);
// User notifications.
$items['user/%user/notify'] = array(
'title' => 'Notifications',
'page callback' => 'drupal_get_form',
@ -670,6 +659,15 @@ function storm_menu() {
'type' => MENU_LOCAL_TASK,
);
// Info about cookies:
$items['about/cookies'] = array(
'title' => 'About Cookies',
'page callback' => 'storm_cookies_page',
'access callback' => TRUE,
'file' => 'storm.admin.inc',
'type' => MENU_CALLBACK,
);
return $items;
}