You are here

gdpr_compliance.api.php in General Data Protection Regulation Compliance 8

Hooks provided by the GDPR compliance module.

File

gdpr_compliance.api.php
View source
<?php

/**
 * @file
 * Hooks provided by the GDPR compliance module.
 */

/**
 * @addtogroup hooks
 * @{
 */

/**
 * Policy page alter hook.
 *
 * Gives ability to alter the content and the context of the rendered page.
 *
 * @param string $policy
 *   Raw content of the page.
 * @param string[] $context
 *   Values that replace related tokens in the raw content. Array contains
 *   'changed', 'mail', 'url' keys to alter.
 */
function hook_gdpr_compliance_policy_alter(&$policy, array &$context) {
  $context['mail'] = 'mail@example.org';
}

/**
 * @} End of "addtogroup hooks".
 */

Functions

Namesort descending Description
hook_gdpr_compliance_policy_alter Policy page alter hook.