You are here

function theme_mail_safety_mail in Mail Safety 7

Same name and namespace in other branches
  1. 7.2 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 262
The core Mail Safety module file

Code

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