Index: mail.module =================================================================== --- mail.module (revision 10) +++ mail.module (working copy) @@ -205,29 +205,47 @@ * @return * A string containing the entire HTML page. */ -function theme_mail_message($node) { +function theme_mail_message($node, $account) { global $user; - $output = "\n"; - $output .= ''; - $output .= '
'; - $output .= '| ';
-
- $output .= "\n\n";
- $output .= ' ' . t('Sent by %name from %site.', array('%name' => $user->name, '%name-url' => url("user/$user->uid", NULL, NULL, TRUE), '%site' => variable_get('site_name', 'drupal'))) . ' '; - $output .= '' . t('If you don\'t wish to receive such e-mails, you can change your account settings.', array('%url' => url('user/' . $node->uid, NULL, NULL, TRUE))) . ' '; - $output .= node_view($node, FALSE, FALSE, FALSE); - $output .= "\n\n"; - - $output .= ' |
| ';
+
+ $output .= "\n\n";
+ $output .= ' ' . t('Sent by %name from %site, regarding %node-title.', array('%name' => $user->name, '%name-url' => url("user/$user->uid", NULL, NULL, TRUE), '%site' => variable_get('site_name', 'drupal'), '%node-url' => url("node/$node->nid", NULL, NULL, TRUE), '%node-title' => $node->title)) . ' '; + $output .= '' . t('If you don\'t wish to receive such e-mails, you can change your account settings.', array('%url' => url('user/' . $account->uid .'/edit', NULL, NULL, TRUE))) . ' '; + $output .= $message; + $output .= "\n\n"; + + $output .= ' |