function hook_forward_mail_post_render_alter in Forward 8.2
Same name and namespace in other branches
- 4.x forward.api.php \hook_forward_mail_post_render_alter()
- 4.0.x forward.api.php \hook_forward_mail_post_render_alter()
Alter the message body after it is rendered.
Parameters
string $message_body: The message content to alter.
\Drupal\Core\Form\FormStateInterface $form_state: A form_state being processed. Alterable.
1 invocation of hook_forward_mail_post_render_alter()
- ForwardForm::submitForm in src/
Form/ ForwardForm.php - Form submission handler.
File
- ./
forward.api.php, line 56 - Hooks provided by the Forward module.
Code
function hook_forward_mail_post_render_alter(&$message_body, FormStateInterface &$form_state) {
$message_body .= '<div>This is some extra content.</div>';
}