function devel_test_mail
Same name in other branches
- 4.x tests/modules/devel_test/devel_test.module \devel_test_mail()
Implements hook_mail().
File
-
tests/
modules/ devel_test/ devel_test.module, line 11
Code
function devel_test_mail($key, array &$message, array $params) : void {
if ($key === 'devel_mail_log') {
$message['subject'] = $params['subject'];
$message['body'][] = $params['body'];
$message['headers']['From'] = $params['headers']['from'];
$message['headers'] += $params['headers']['additional'];
}
}