mail_cancel_test.module
Same filename in other branches
File
-
core/
modules/ system/ tests/ modules/ mail_cancel_test/ mail_cancel_test.module
View source
<?php
/**
* @file
* Helper module for the catching mail that needs to be cancelled.
*/
declare (strict_types=1);
/**
* Implements hook_mail_alter().
*
* Aborts sending of messages with ID 'mail_cancel_test_cancel_test'.
*
* @see MailTestCase::testCancelMessage()
*/
function mail_cancel_test_mail_alter(&$message) {
if ($message['id'] == 'mail_cancel_test_cancel_test') {
$message['send'] = FALSE;
}
}
Functions
Title | Deprecated | Summary |
---|---|---|
mail_cancel_test_mail_alter | Implements hook_mail_alter(). |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.