Index: notifications.cron.inc
===================================================================
194a195,197
>   # PB:2011/01/13 dedubing multiple update notifications
>   $currentCombine = variable_get('notifications_events_dedubing', array());
>   # PB:2011/01/13 dedubing multiple update notifications END
213a217,264
>       	
>       	# PB:2011/01/13 dedubing multiple update notifications
>       	if (isset($currentCombine['combine']) && $currentCombine['combine'] == 1) {
>       	    $aTmpSuspectNid = array();
> 	      	$aTmpSuspectEvent = array();
> 	      	
> 	      	foreach ($events as $iEventId => $aTmpEvent) {
> 	      		
> 	      		if($aTmpEvent->module == 'node' && ($aTmpEvent->action == 'update' || $aTmpEvent->action == 'insert')) {
> 	      			
> 	      			if (isset($aTmpSuspectEvent[$aTmpEvent->oid])) {
> 	      				
> 	      				switch ($aTmpEvent->action) {
> 	      					case 'update':
> 	      						
> 	      						if (isset($aTmpSuspectEvent[$aTmpEvent->oid][$aTmpEvent->action])) {
> 	      							
> 	      							if ($aTmpSuspectEvent[$aTmpEvent->oid][$aTmpEvent->action] > $iEventId) {
> 	      								unset($events[$iEventId]);
> 	      							} else {
> 	      								unset($events[$aTmpSuspectEvent[$aTmpEvent->oid][$aTmpEvent->action]]);
> 	      							}
> 	      							
> 	      						} elseif (isset($aTmpSuspectEvent[$aTmpEvent->oid]['insert'])) {
> 	      							unset($events[$iEventId]);
> 	      						}
> 	      						
> 	      						break;
> 	      					case 'insert':
> 	      						
> 	      						if (isset($aTmpSuspectEvent[$aTmpEvent->oid]['update'])) {
> 	      							unset($events[$aTmpSuspectEvent[$aTmpEvent->oid]['update']]);
> 	      						}
> 	      						
> 	      						break;
> 	      				}
> 	      				
> 	      			} else {
> 	      				$aTmpSuspectEvent[$aTmpEvent->oid] = array($aTmpEvent->action => $iEventId );
> 	      			}
> 	      			
> 	      		}
> 	      		
> 	      	}
> 	      	
>       	}
>       	# PB:2011/01/13 dedubing multiple update notifications END
>       	
Index: notifications.admin.inc
===================================================================
265a266,268
>   # PB:2011/01/13 dedubing multiple update notifications
>   $currentCombine = variable_get('notifications_events_dedubing', array());
>   # PB:2011/01/13 dedubing multiple update notifications END
282a286,301
>     
>     # PB:2011/01/13 dedubing multiple notifications
>     $form['notifications_events_dedubing'] = array(
>       '#title' => t('Dedubimg notifications'),
>       '#type' => 'fieldset',
>       '#tree' => TRUE,
>       '#description' => t('Combine update notifications for the same node in one digest line.'),
>     );
>     
>     $form['notifications_events_dedubing']['combine'] = array(
>       '#type' => 'checkbox',
>       '#title' => 'Reduce update notifications verbosity',
>       '#default_value' => isset($currentCombine['combine']) ? $currentCombine['combine']:0,
>     );
>     # PB:2011/01/13 dedubing multiple update notifications END
>     
