| 1 |
<?php |
<?php |
| 2 |
// $Id: ejournal.module,v 1.9.2.37.2.27 2009/04/26 19:33:46 romca Exp $ |
// $Id: ejournal.module,v 1.9.2.37.2.28 2009/07/09 08:53:39 romca Exp $ |
| 3 |
|
|
| 4 |
/* |
/* |
| 5 |
* TODOs: |
* TODOs: |
| 3229 |
********************************************/ |
********************************************/ |
| 3230 |
|
|
| 3231 |
function ejournal_mail_alter(&$message) { |
function ejournal_mail_alter(&$message) { |
| 3232 |
$message['body'] .= "\n" . "This e-mail was generated by e-journal module"; |
if ($message['id'] == 'ejournal_action_send_email') { |
| 3233 |
|
$message['body'][] = "\n" . t("This e-mail was generated by e-journal module"); |
| 3234 |
|
} |
| 3235 |
} |
} |
| 3236 |
|
|
| 3237 |
function ejournal_mail($key, &$message, $params) { |
function ejournal_mail($key, &$message, $params) { |
| 3238 |
$variables = array( |
$variables = array( |
| 3239 |
'%site_name' => variable_get('site_name', 'Drupal'), |
'%site_name' => variable_get('site_name', 'Drupal'), |
| 3253 |
$message['subject'] .= str_replace(array("\r", "\n"), '', $subject); |
$message['subject'] .= str_replace(array("\r", "\n"), '', $subject); |
| 3254 |
$message['body'][] = drupal_html_to_text($body); |
$message['body'][] = drupal_html_to_text($body); |
| 3255 |
} |
} |
| 3256 |
|
|
| 3257 |
function ejournal_email_article_inserted($jid, $node) { |
function ejournal_email_article_inserted($jid, $node) { |
| 3258 |
global $user; |
global $user; |
| 3259 |
|
|