You are here

function hook_mail_safety_load in Mail Safety 7.2

Same name and namespace in other branches
  1. 8 mail_safety.api.php \hook_mail_safety_load()
  2. 7 mail_safety.api.php \hook_mail_safety_load()

Respond to a mail being loaded.

Parameters

array $message: The message array.

Return value

array Return the message array after any changes.

File

./mail_safety.api.php, line 39
Hooks provided by the Mail Safety module.

Code

function hook_mail_safety_load($message) {
  if (!empty($message['attachments'])) {
    $message['has_attachments'] = TRUE;
  }
  return $message;
}