function hook_sendgrid_integration_unique_args_alter in SendGrid Integration 7
Same name and namespace in other branches
- 8.2 sendgrid_integration.api.php \hook_sendgrid_integration_unique_args_alter()
- 8 sendgrid_integration.api.php \hook_sendgrid_integration_unique_args_alter()
- 6 sendgrid_integration.api.php \hook_sendgrid_integration_unique_args_alter()
This hook is invoked before mail is sent, allowing modification of unique_args.
Parameters
array $unique_args: Unique arguments.
array $message: The email message
Return value
array Returned array will be used as unique arguments.
1 invocation of hook_sendgrid_integration_unique_args_alter()
- SendGridMailSystem::mail in inc/
sendgrid.mail.inc - Implement mail method to send mail via Sendgrid.
File
- ./
sendgrid_integration.api.php, line 53 - Hooks provided by SendGrid Integration module
Code
function hook_sendgrid_integration_unique_args_alter($unique_args, $message) {
$unique_args['time'] = time();
$unique_args['subject'] = $message['params']['subject'];
return $unique_args;
}