function gdpr_consent_collected_agreements in General Data Protection Regulation 7
Page callback to list a user's consent agreements.
@todo Finish this.
1 string reference to 'gdpr_consent_collected_agreements'
- gdpr_consent_menu in modules/
gdpr_consent/ gdpr_consent.module - Implements hook_menu().
File
- modules/
gdpr_consent/ includes/ gdpr_consent.agreements.inc, line 13 - Pages file for the GDPR Consent module.
Code
function gdpr_consent_collected_agreements($account) {
// Or load it with EFQ.
$query = new EntityFieldQuery();
$query
->entityCondition('entity_type', 'gdpr_consent_agreement');
$result = $query
->execute();
if (isset($result['gdpr_consent_agreement'])) {
$consent_ids = array_keys($result['gdpr_consent_agreement']);
entity_load('gdpr_consent_agreement', $consent_ids);
}
return MENU_ACCESS_DENIED;
}