/[drupal]/contributions/modules/notify/notify.module
ViewVC logotype

Diff of /contributions/modules/notify/notify.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 2.77, Tue Jun 23 23:31:12 2009 UTC revision 2.78, Tue Jun 23 23:38:12 2009 UTC
# Line 1  Line 1 
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    
# Line 498  function _notify_send() { Line 498  function _notify_send() {
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      }      }
# Line 521  function _notify_send() { Line 521  function _notify_send() {
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) {
# Line 533  function _notify_send() { Line 533  function _notify_send() {
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      }      }

Legend:
Removed from v.2.77  
changed lines
  Added in v.2.78

  ViewVC Help
Powered by ViewVC 1.1.2