Index: plugins/context_og_condition_group.inc
===================================================================
--- plugins/context_og_condition_group.inc	(revision 0)
+++ plugins/context_og_condition_group.inc	(revision 0)
@@ -0,0 +1,22 @@
+<?php
+// $Id$
+
+/**
+ * Expose organic group as a context condition.
+ */
+class context_og_condition_group extends context_condition {
+  function condition_values() {
+    $values = array(
+      '_in_group_' => t('In a group'),
+    );
+    return $values;
+  }
+
+  function execute($group) {
+    $type = isset($group) ? '_in_group_' : '';
+    $contexts = $this->get_contexts($type);
+    foreach ($contexts as $context) {
+      $this->condition_met($context, $type);
+    }
+  }
+}
Index: context_og.module
===================================================================
--- context_og.module	(revision 7970)
+++ context_og.module	(working copy)
@@ -9,6 +9,14 @@
 
 function context_og_context_plugins() {
   $plugins = array();
+  $plugins['context_og_condition_group'] = array(
+    'handler' => array(
+      'path' => drupal_get_path('module', 'context_og') . '/plugins',
+      'file' => 'context_og_condition_group.inc',
+      'class' => 'context_og_condition_group',
+      'parent' => 'context_condition',
+    ),
+  );
   $plugins['context_og_condition_group_node'] = array(
     'handler' => array(
       'path' => drupal_get_path('module', 'context_og') . '/plugins',
@@ -42,6 +50,11 @@
 function context_og_context_registry() {
   return array(
     'conditions' => array(
+      'context_og_condition_group' => array(
+        'title' => t('OG - group context'),
+        'description' => t("Set this context when viewing a node or other page that is in any group."),
+        'plugin' => 'context_og_condition_group',
+      ),
       'context_og_condition_group_node' => array(
         'title' => t('OG - group node context'),
         'description' => t("Set this context when viewing a node or other page that is in any of the selected groups."),
@@ -81,6 +94,11 @@
     if ($plugin) {
       $plugin->execute($group);
     }
+
+    $plugin = context_get_plugin('condition', 'context_og_condition_group');
+    if ($plugin) {
+      $plugin->execute($group);
+    }
   }
 
   // Execute the group type context condition all the time because we want
