You are here

function hook_sparkpost_mail_alter in Sparkpost email 7

Same name and namespace in other branches
  1. 8.2 sparkpost.api.php \hook_sparkpost_mail_alter()
  2. 7.2 sparkpost.api.php \hook_sparkpost_mail_alter()

Alter the Sparkpost message or the Drupal message array.

Parameters

array $sparkpost_message: The array we are about the send to the Sparkpost API.

array $message: The drupal_mail message the Sparkpost message was based on.

See also

drupal_mail()

sparkpost_mail()

1 invocation of hook_sparkpost_mail_alter()
SparkpostMailSystem::mail in includes/sparkpost.mail.inc
Send the email message.

File

./sparkpost.api.php, line 19
Hooks provided by the sparkpost module.

Code

function hook_sparkpost_mail_alter(&$sparkpost_message, &$message) {

  // Code to alter the message.
}