/[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.5, Thu Oct 2 21:45:40 2008 UTC revision 1.6, Thu Oct 9 16:20:52 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  /* $Id: notify_by_views.module,v 1.4 2008/08/28 16:46:38 matt2000 Exp $ */  /* $Id: notify_by_views.module,v 1.5 2008/10/02 21:45:40 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 220  function notify_by_views_nodeapi(&$node, Line 220  function notify_by_views_nodeapi(&$node,
220    switch ($op) {    switch ($op) {
221      case 'insert':      case 'insert':
222         $total = 0;         $total = 0;
223         foreach (variable_get('notify_by_views_select_views', array()) AS $view_name) {         foreach (variable_get('notify_by_views_select_views', array()) AS $key => $view_name) {
224              if (!$key && !$view_name) continue; //bail if this is an unselected view
225            $result = _notify_by_views_mail_send($node, 'immediate', $view_name);            $result = _notify_by_views_mail_send($node, 'immediate', $view_name);
226            $total = $total + $result[0];            $total = $total + $result[0];
227         }         }

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.2