Index: og.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/og/og.module,v retrieving revision 1.148 diff -u -r1.148 og.module --- og.module 28 Mar 2006 21:20:21 -0000 1.148 +++ og.module 31 Mar 2006 01:26:58 -0000 @@ -539,6 +539,12 @@ if (!$subscriptions[$uid]) { $subscriptions[$uid] = array(); } + + //Allow other modules to add their dynamic subscriptions + //hook_og in this case will return a regular indexed array + //of the additional organic groups to subscribe to for this $uid + $munged_subs = module_invoke_all('og', 'user load', NULL, $uid, $subscriptions[$uid]); + $subscriptions[$uid] = $munged_subs; } return $subscriptions[$uid]; }