function gdpr_consent_menu in General Data Protection Regulation 7
Implements hook_menu().
File
- modules/
gdpr_consent/ gdpr_consent.module, line 25 - Contains hook implementations and shared functions.
Code
function gdpr_consent_menu() {
$items = array();
$items['user/%user/gdpr/agreements'] = array(
'title' => 'Agreements',
'description' => 'List Agreement Entities',
'page callback' => 'gdpr_consent_collected_agreements',
'page arguments' => array(
1,
),
'access arguments' => array(
'manage gdpr agreements',
),
'menu_name' => 'navigation',
'file' => 'includes/gdpr_consent.agreements.inc',
);
$items['admin/config/gdpr/agreements/%gdpr_consent_agreement'] = array(
'title' => 'Consent Agreement',
'page callback' => 'gdpr_consent_agreement_view_entity',
'page arguments' => array(
3,
),
'access arguments' => array(
'manage gdpr agreements',
),
'file' => 'includes/gdpr_consent.agreements.inc',
);
// 'View' tab for an individual entity.
$items['admin/config/gdpr/agreements/%gdpr_consent_agreement/view'] = array(
'title' => 'View',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
);
// 'Edit' tab for an individual entity.
$items['admin/config/gdpr/agreements/%gdpr_consent_agreement/edit'] = array(
'title' => 'Edit',
'page callback' => 'entity_ui_get_form',
'page arguments' => array(
'gdpr_consent_agreement',
3,
),
'access arguments' => array(
'manage gdpr agreements',
),
'type' => MENU_LOCAL_TASK,
'weight' => -5,
'file' => 'includes/gdpr_consent.admin.inc',
);
// 'Revisions' tab for an individual entity.
$items['admin/config/gdpr/agreements/%gdpr_consent_agreement/revisions'] = array(
'title' => 'Revisions',
'page callback' => 'gdpr_consent_agreement_revision_overview',
'page arguments' => array(
3,
),
'type' => MENU_LOCAL_TASK,
'access arguments' => array(
'manage gdpr agreements',
),
'file' => 'includes/gdpr_consent.admin.inc',
'weight' => -3,
);
// An individual revision view page.
$items['admin/config/gdpr/agreements/%gdpr_consent_agreement/revisions/%/view'] = array(
'title' => 'Revision',
'page callback' => 'gdpr_consent_agreement_view_revision',
'page arguments' => array(
5,
),
'access arguments' => array(
'manage gdpr agreements',
),
'file' => 'includes/gdpr_consent.agreements.inc',
'weight' => -3,
);
// 'Delete' tab for an individual entity.
$items['admin/config/gdpr/agreements/%gdpr_consent_agreement/delete'] = array(
'title' => 'Delete',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'gdpr_consent_agreement_form',
3,
),
'access arguments' => array(
'manage gdpr agreements',
),
'type' => MENU_LOCAL_TASK,
'file' => 'includes/gdpr_consent.admin.inc',
'weight' => 0,
);
return $items;
}