function simpletest_mail_alter in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/simpletest/simpletest.module \simpletest_mail_alter()
Implements hook_mail_alter().
Aborts sending of messages with ID 'simpletest_cancel_test'.
See also
MailTestCase::testCancelMessage()
File
- core/
modules/ simpletest/ simpletest.module, line 677 - Provides testing functionality.
Code
function simpletest_mail_alter(&$message) {
if ($message['id'] == 'simpletest_cancel_test') {
$message['send'] = FALSE;
}
}