function gdpr_consent_save_removal in GDPR Consent 7
Function to save removals.
Parameters
int $version: Version id.
int $revision: Revision id.
string $language: Language code.
int $tc_id: Conditions id.
int $uid: User id.
2 calls to gdpr_consent_save_removal()
- gdpr_consent_accept_form_submit in ./
gdpr_consent.module - Implements hook_form_id_submit().
- gdpr_consent_user_update in ./
gdpr_consent.module - Implements hook_user_update().
File
- ./
gdpr_consent.module, line 880 - Module file for GDPR Consent.
Code
function gdpr_consent_save_removal($version, $revision, $language, $tc_id, $uid) {
db_update('gdpr_consent_accepted')
->expression('revoked', time())
->condition('uid', $uid, '=')
->condition('version', $version, '=')
->condition('revision', $revision, '=')
->condition('tc_id', $tc_id, '=')
->condition('language', $language, '=')
->execute();
}