function gdpr_tasks_menu in General Data Protection Regulation 7
Implements hook_menu().
File
- modules/
gdpr_tasks/ gdpr_tasks.module, line 139 - Module file for the GDPR Tasks module.
Code
function gdpr_tasks_menu() {
$items['user/%user/gdpr/list'] = array(
'title' => 'Summary',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
);
$items['user/%user/gdpr/requests/gdpr_remove/add'] = array(
'title' => 'Request data removal',
'page callback' => 'gdpr_tasks_request',
'page arguments' => array(
1,
4,
),
'access callback' => 'gdpr_tasks_user_tasks_access',
'access arguments' => array(
'request',
1,
),
'type' => MENU_LOCAL_ACTION,
'file' => 'gdpr_tasks.pages.inc',
);
$items['user/%user/gdpr/requests/gdpr_sar/add'] = array(
'title' => 'Request data export',
'page callback' => 'gdpr_tasks_request',
'page arguments' => array(
1,
4,
),
'access callback' => 'gdpr_tasks_user_tasks_access',
'access arguments' => array(
'request',
1,
),
'type' => MENU_LOCAL_ACTION,
'file' => 'gdpr_tasks.pages.inc',
);
$items['admin/config/gdpr/task-email'] = array(
'title' => 'Task Emails',
'description' => 'Configure email templates to be sent for task requests.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'gdpr_tasks_email_settings',
),
'access arguments' => array(
'administer task emails',
),
'file' => 'gdpr_tasks.admin.inc',
'weight' => 99,
);
return $items;
}