You are here

function gdpr_menu in General Data Protection Regulation 7

Implements hook_menu().

File

./gdpr.module, line 21
Contains hook implementations and shared functions.

Code

function gdpr_menu() {

  // Administration pages.
  $items['admin/config/gdpr'] = [
    'title' => 'GDPR',
    'position' => 'left',
    'page callback' => 'system_admin_menu_block_page',
    'access arguments' => [
      'administer site configuration',
    ],
    'file' => 'system.admin.inc',
    'file path' => drupal_get_path('module', 'system'),
  ];
  $items['user/%user/collected_data'] = [
    'title' => 'All your data',
    'page callback' => 'gdpr_collected_user_data',
    'page arguments' => [
      1,
    ],
    'access callback' => 'gdpr_collected_user_data_access',
    'access arguments' => [
      1,
    ],
    'type' => MENU_LOCAL_TASK,
  ];
  return $items;
}