You are here

function mail_safety_admin_view_mail in Mail Safety 7

Same name and namespace in other branches
  1. 7.2 mail_safety.admin.inc \mail_safety_admin_view_mail()

Page callback: Displays a mail filtered by the dashboard.

Parameters

array $mail: The mail array filtered by Mail Safety

See also

node_menu()

1 string reference to 'mail_safety_admin_view_mail'
mail_safety_menu in ./mail_safety.module
Implements hook_menu().

File

./mail_safety.admin.inc, line 143
Admin functionality for Mail Safety

Code

function mail_safety_admin_view_mail($mail) {
  $system = drupal_mail_system($mail['mail']['module'], $mail['mail']['key']);
  $mail['mail'] = $system
    ->format($mail['mail']);
  return theme('mail_safety_mail', array(
    'mail' => $mail,
  ));
}