| 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 |
| 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 |
} |
} |