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

Diff of /contributions/modules/notify_by_views/notify_by_views.module

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

revision 1.9, Tue Apr 28 18:27:00 2009 UTC revision 1.10, Tue Apr 28 18:29:54 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  /* $Id: notify_by_views.module,v 1.8 2009/04/28 17:21:39 matt2000 Exp $ */  /* $Id: notify_by_views.module,v 1.9 2009/04/28 18:27:00 matt2000 Exp $ */
3  /**  /**
4   * Display help and module information   * Display help and module information
5   * @param section which section of the site we're displaying help   * @param section which section of the site we're displaying help
# Line 227  function notify_by_views_nodeapi(&$node, Line 227  function notify_by_views_nodeapi(&$node,
227      case 'insert':      case 'insert':
228         $total = 0;         $total = 0;
229         foreach (variable_get('notify_by_views_select_views', array()) AS $key => $view_name) {         foreach (variable_get('notify_by_views_select_views', array()) AS $key => $view_name) {
230            if (!$key && !$view_name) continue; //bail if this is an unselected view            if (!$key || !$view_name) continue; //bail if this is an unselected view
231            $result = _notify_by_views_mail_send($node, 'immediate', $view_name);            $result = _notify_by_views_mail_send($node, 'immediate', $view_name);
232            $total = $total + $result[0];            $total = $total + $result[0];
233         }         }

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.2