You are here

function gdpr_email_sanitize in General Data Protection Regulation 7

Email sanitize callback.

1 string reference to 'gdpr_email_sanitize'
EmailSanitizer.inc in modules/gdpr_dump/plugins/sanitizer/EmailSanitizer.inc

File

modules/gdpr_dump/plugins/sanitizer/EmailSanitizer.inc, line 16

Code

function gdpr_email_sanitize($input) {
  if (empty($input)) {
    return $input;
  }
  $random = new GdprDumpUtilRandom();
  return $random
    ->word(12) . '@example.com';
}