You are here

function theme_mail_safety_mail in Mail Safety 7.2

Same name and namespace in other branches
  1. 7 mail_safety.module \theme_mail_safety_mail()

Returns HTML for the display of a mail.

Parameters

array $variables: An associative array containing:

  • mail: The message array that is being formatted.
1 theme call to theme_mail_safety_mail()
mail_safety_admin_view_mail in ./mail_safety.admin.inc
Page callback: Displays a mail filtered by the dashboard.

File

./mail_safety.module, line 201

Code

function theme_mail_safety_mail($variables) {
  $mail_safety_mail = $variables['mail_safety_mail'];
  $message = $mail_safety_mail->message;
  $output = '<h2>' . $message['subject'] . '</h2>';
  $output .= '<div class="mail-body">' . $message['body'] . '</div>';
  return check_markup($output);
}