You are here

function theme_mail_safety_details in Mail Safety 7.2

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

Returns HTML for the details 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_details()
mail_safety_admin_details_mail in ./mail_safety.admin.inc
Page callback: Displays a mail its parameters filtered by the dashboard.

File

./mail_safety.module, line 220

Code

function theme_mail_safety_details($variables) {
  $mail_safety_mail = $variables['mail_safety_mail'];
  $message = $mail_safety_mail->message;
  $output = '<h2>' . $message['subject'] . '</h2>';
  $output .= '<pre>' . print_r($message, TRUE) . '</pre>';
  return check_markup($output);
}