Index: subscriptions_og.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/subscriptions_og/Attic/subscriptions_og.module,v
retrieving revision 1.1.2.10
diff -u -r1.1.2.10 subscriptions_og.module
--- subscriptions_og.module	18 Feb 2008 06:01:28 -0000	1.1.2.10
+++ subscriptions_og.module	19 Feb 2008 19:37:33 -0000
@@ -67,7 +67,7 @@
  * @see subscriptions_add_form_submit()
  */
 function subscriptions_og_subscriptions($op, $arg0 = NULL, $arg1 = NULL, $arg2 = NULL) {
-  static $stypes = array('og' => array('node', 'tid'));
+  static $stypes = array('og' => array('node', 'group_nid'));
   $function = '_subscriptions_og_'. $op;
   if (function_exists($function)) {
     return $function($arg0, $arg1, $arg2);
@@ -77,9 +77,9 @@
       // $arg0 is $event array.
       if ($arg0['module'] == 'node') {
         $node = $arg0['node'];
-        $params['node']['tid'] = array(
-          'join' => 'INNER JOIN {term_node} t ON s.value = t.tid',
-          'where' => 't.nid = %d',
+        $params['node']['group_nid'] = array(
+          'join' => 'INNER JOIN {og_ancestry} a ON s.value = a.group_nid',
+          'where' => 'a.nid = %d',
           'args' => array($node->nid),
         );
         if ($arg0['type'] == 'comment') {
@@ -89,7 +89,7 @@
           $where  = ' AND s.send_updates = 1';
         }
         if (isset($where)) {
-          $params['node']['tid']['where'] .= $where;
+          $params['node']['group_nid']['where'] .= $where;
         }
         return $params;
       }
@@ -98,7 +98,7 @@
       if ($arg0 == 'node' || $arg0 == 'comment') {
         $tr = 't';
         return array(
-          'tid' => array(
+          'group_nid' => array(
             'mailvars_function' => '_subscriptions_content_node_mailvars',
             '!type' => $tr('category'),
           ),
