| 1 |
<?php |
<?php |
| 2 |
// $Id: notify.module,v 2.76 2009/06/23 23:21:05 matt2000 Exp $ |
// $Id: notify.module,v 2.77 2009/06/23 23:31:12 matt2000 Exp $ |
| 3 |
|
|
| 4 |
define('NOTIFY_NODE_TYPE', 'notify_node_type_'); |
define('NOTIFY_NODE_TYPE', 'notify_node_type_'); |
| 5 |
|
|
| 498 |
// Prepend node e-mail header as long as user could access at least one node. |
// Prepend node e-mail header as long as user could access at least one node. |
| 499 |
if ($node_count > 0) { |
if ($node_count > 0) { |
| 500 |
$node_body = $separator ."\n" |
$node_body = $separator ."\n" |
| 501 |
. t('Recent content - !count', array('!count' => format_plural(count($nodes), '1 new post', count($nodes) .' new posts'))) ."\n" |
. t('Recent content - !count', array('!count' => format_plural(count($nodes), '1 new post', '@count new posts'))) ."\n" |
| 502 |
. $separator ."\n\n". $node_body; |
. $separator ."\n\n". $node_body; |
| 503 |
} |
} |
| 504 |
} |
} |
| 521 |
if ($comment_body) { |
if ($comment_body) { |
| 522 |
$comment_body .= $mini_separator ."\n\n"; |
$comment_body .= $mini_separator ."\n\n"; |
| 523 |
} |
} |
| 524 |
$comment_body .= t('!count attached to !type posted by !author: !title', array('!count' => format_plural(count($comment), '1 new comment', '!count new comments'), '!title' => $nodes[$nid]->title, '!type' => node_get_types('name', $nodes[$nid]), '!author' => $nodes[$nid]->name ? $nodes[$nid]->name : variable_get('anonymous', 'Anonymous'))) ."\n"; |
$comment_body .= t('!count attached to !type posted by !author: !title', array('!count' => format_plural(count($comment), '1 new comment', '@count new comments'), '!title' => $nodes[$nid]->title, '!type' => node_get_types('name', $nodes[$nid]), '!author' => $nodes[$nid]->name ? $nodes[$nid]->name : variable_get('anonymous', 'Anonymous'))) ."\n"; |
| 525 |
|
|
| 526 |
$comment_count = 0; |
$comment_count = 0; |
| 527 |
foreach ($comment as $c) { |
foreach ($comment as $c) { |
| 533 |
|
|
| 534 |
if ($total_comment_count > 0) { |
if ($total_comment_count > 0) { |
| 535 |
$comment_body = $separator ."\n" |
$comment_body = $separator ."\n" |
| 536 |
. t('Recent comments - !count', array('!count' => format_plural($total_comment_count, '1 new comment', '!count new comments'))) ."\n" |
. t('Recent comments - !count', array('!count' => format_plural($total_comment_count, '1 new comment', '@count new comments'))) ."\n" |
| 537 |
. $separator ."\n\n". $comment_body; |
. $separator ."\n\n". $comment_body; |
| 538 |
} |
} |
| 539 |
} |
} |