function mail_cancel_test_mail_alter
Same name in other branches
- 8.9.x core/modules/system/tests/modules/mail_cancel_test/mail_cancel_test.module \mail_cancel_test_mail_alter()
- 10 core/modules/system/tests/modules/mail_cancel_test/mail_cancel_test.module \mail_cancel_test_mail_alter()
- 11.x core/modules/system/tests/modules/mail_cancel_test/mail_cancel_test.module \mail_cancel_test_mail_alter()
Implements hook_mail_alter().
Aborts sending of messages with ID 'mail_cancel_test_cancel_test'.
See also
MailTestCase::testCancelMessage()
File
-
core/
modules/ system/ tests/ modules/ mail_cancel_test/ mail_cancel_test.module, line 15
Code
function mail_cancel_test_mail_alter(&$message) {
if ($message['id'] == 'mail_cancel_test_cancel_test') {
$message['send'] = FALSE;
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.