function user_email_validation_test_valid_email_address_alter
Implements hook_valid_email_address_alter().
File
-
modules/
user/ tests/ user_email_validation_test.module, line 11
Code
function user_email_validation_test_valid_email_address_alter(&$valid, $mail) {
$local = '.local';
// Invalidate all e-mails ending with .local.
if (substr_compare($mail, $local, -strlen($local)) === 0) {
$valid = FALSE;
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.