? plugins/context_condition_domain.inc
? plugins/context_condition_og.inc
Index: context.core.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/context/Attic/context.core.inc,v
retrieving revision 1.1.2.3.2.20.2.6
diff -u -p -r1.1.2.3.2.20.2.6 context.core.inc
--- context.core.inc	19 Jan 2010 22:03:43 -0000	1.1.2.3.2.20.2.6
+++ context.core.inc	20 Jan 2010 01:54:21 -0000
@@ -52,6 +52,20 @@ function context_context_registry() {
       'plugin' => 'context_condition_bookroot',
     );
   }
+  if (module_exists('og')) {
+    $registry['conditions']['og'] = array(
+      'title' => t('Organic groups'),
+      'description' => t('Set this context when viewing a node whose group is of the selected type.'),
+      'plugin' => 'context_condition_og',
+    );
+  }
+  if (module_exists('domain')) {
+    $registry['conditions']['domain'] = array(
+      'title' => t('Domain'),
+      'description' => t('Set this context when viewing a node depending on its domains.'),
+      'plugin' => 'context_condition_domain',
+    );
+  }
   $registry['reactions'] = array(
     'block' => array(
       'title' => t('Blocks'),
@@ -178,6 +192,11 @@ function context_nodeapi(&$node, $op, $t
         $plugin->execute($node, $op);
       }
     }
+    if (module_exists('og')) {
+      if ($plugin = context_get_plugin('condition', 'og')) {
+        $plugin->execute($node, $op);
+      }
+    }
   }
 }
 
@@ -195,6 +214,11 @@ function context_form_alter(&$form, $for
         $plugin->execute($form['#node'], $op);
       }
     }
+    if (module_exists('og')) {
+      if ($plugin = context_get_plugin('condition', 'og')) {
+        $plugin->execute($form['#node'], 'form');
+      }
+    }
   }
   if ($form_id == 'system_modules') {
     context_invalidate_cache();
Index: context.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/context/context.module,v
retrieving revision 1.6.2.6.2.6.2.3
diff -u -p -r1.6.2.6.2.6.2.3 context.module
--- context.module	9 Jan 2010 16:06:34 -0000	1.6.2.6.2.6.2.3
+++ context.module	20 Jan 2010 01:54:22 -0000
@@ -155,6 +155,9 @@ function context_init() {
 
   $plugin = context_get_plugin('condition', 'sitewide');
   $plugin->execute(1);
+  
+  $plugin = context_get_plugin('condition', 'domain');
+  $plugin->execute();
 }
 
 /**
Index: context.plugins.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/context/Attic/context.plugins.inc,v
retrieving revision 1.1.2.2
diff -u -p -r1.1.2.2 context.plugins.inc
--- context.plugins.inc	10 Jan 2010 07:07:45 -0000	1.1.2.2
+++ context.plugins.inc	20 Jan 2010 01:54:22 -0000
@@ -85,6 +85,26 @@ function _context_context_plugins() {
       ),
     );
   }
+  if (module_exists('og')) {
+    $plugins['context_condition_og'] = array(
+      'handler' => array(
+        'path' => drupal_get_path('module', 'context') .'/plugins',
+        'file' => 'context_condition_og.inc',
+        'class' => 'context_condition_og',
+        'parent' => 'context_condition',
+      ),
+    );
+  }
+  if (module_exists('domain')) {
+    $plugins['context_condition_domain'] = array(
+      'handler' => array(
+        'path' => drupal_get_path('module', 'context') .'/plugins',
+        'file' => 'context_condition_domain.inc',
+        'class' => 'context_condition_domain',
+        'parent' => 'context_condition',
+      ),
+    );
+  }
 
   /**
    * Reactions.
