Index: notifications_lite/notifications_lite.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/notifications/notifications_lite/Attic/notifications_lite.module,v
retrieving revision 1.1.2.2
diff -u -F^f -r1.1.2.2 notifications_lite.module
--- notifications_lite/notifications_lite.module	3 Aug 2008 00:13:06 -0000	1.1.2.2
+++ notifications_lite/notifications_lite.module	5 Sep 2008 00:57:12 -0000
@@ -33,11 +33,13 @@
  *   Optional notification body
  * @param $action
  *   Optional action name, so other modules can define specific message parts for their actions
+ * @param $params
+ *   Optional array of params to pass store with the event for later use (only if the full notifications system is used).
  */
-function notifications_lite_send($uid, $subject, $body = '', $action = 'default') {
+function notifications_lite_send($uid, $subject, $body = '', $action = 'default', $params = array()) {
   if (module_exists('notifications')) {
     // So we have the full Notifications system enabled  
-    return notifications_lite_add_to_queue($uid, $subject, $body, $action);
+    return notifications_lite_add_to_queue($uid, $subject, $body, $action, $params);
   }
   elseif (module_exists('messaging')) {
     // We just have the Messaging system, that's something
@@ -69,7 +71,7 @@ function notifications_lite_send($uid, $
  * @param $action
  *   Optional action name, so other modules can define specific message parts for their actions
  */
-function notifications_lite_add_to_queue($uid, $subject, $body = '', $action = 'default') {
+function notifications_lite_add_to_queue($uid, $subject, $body = '', $action = 'default', $params = array()) {
   // Build and store simple event
   $event = array(
     'module' => 'notifications',
@@ -79,6 +81,7 @@ function notifications_lite_add_to_queue
     'action' => $action,
     'params' => array('for-uid' => $uid, 'subject' => $subject, 'body' => $body),      
   );  
+  $event['params'] = array_merge($event['params'], $params);
   $event  = notifications_event($event);
 }
 
@@ -99,9 +102,7 @@ function notifications_lite_notification
         }
         if (!empty($event->params['body'])) {
           $event->text['main'] = $event->params['body'];
-        } else {
-          $event->text['main'] = '';
-        }
+        } 
       }
       break;
     // By queueing the event here we gain access to some features, like inmediate sending
