Index: og2list.module
===================================================================
RCS file: /cvs/drupal/contributions/modules/og2list/og2list.module,v
retrieving revision 1.109
diff -u -r1.109 og2list.module
--- og2list.module	5 Aug 2007 12:35:31 -0000	1.109
+++ og2list.module	7 Aug 2007 17:08:46 -0000
@@ -1472,6 +1472,30 @@
   return $output;
 }
 
+/**
+ * When new content is created og will send a notification unless
+ * og2list returns TRUE from its hook_og_notify().
+ * 
+ * og2list returns TRUE to handle the notification for groups
+ * that have a row in og2list_groups (groups where the 
+ * og2list recipient has been set in the og2list edit tab), 
+ * and where the content type is a forum.
+ *
+ * @param $node
+ *   The node object
+
+ * @return
+ *   TRUE if og2list will handle the notification or FALSE otherwise
+ */
+function og2list_og_notify($node) {   
+    $edit = (array) $node;
+    $edit['og_nids'] = $edit['og_groups'];
+    og2list_get_groups($edit);
+    if (count($edit['ogs'])) {     
+      return TRUE;
+    } 
+  return FALSE;
+}
 
 /* From Drupal 4.7 og_forum module.   This function is not present in the 5.x
  * version of og_forum.
