You are here

function gdpr_consent_agreement_view_revision in General Data Protection Regulation 7

Callback for consent agreement revision page.

1 string reference to 'gdpr_consent_agreement_view_revision'
gdpr_consent_menu in modules/gdpr_consent/gdpr_consent.module
Implements hook_menu().

File

modules/gdpr_consent/includes/gdpr_consent.agreements.inc, line 88
Pages file for the GDPR Consent module.

Code

function gdpr_consent_agreement_view_revision($revision_id) {
  $agreement = entity_revision_load('gdpr_consent_agreement', $revision_id);
  $output = gdpr_consent_agreement_view_entity($agreement);
  drupal_set_title(t('@title revision @id', array(
    '@title' => $agreement->title,
    '@id' => $agreement->revision_id,
  )));
  return $output;
}