You are here

function mail_signature_mail_alter in Mail signature 7

Implements hook_mail_alter().

Add signature to every mail.

File

./mail_signature.module, line 34
Basic functions for Mail Signature module.

Code

function mail_signature_mail_alter(&$message) {
  if (variable_get('mail_signature_enabled') && variable_get('mail_signature_text') != '') {
    $message['body'][] = '--<br />' . token_replace(variable_get('mail_signature_text'));
  }
}