diff -Nrup og_context-old/og_context.info og_context/og_context.info
--- og_context-old/og_context.info	1970-01-01 01:00:00.000000000 +0100
+++ og_context/og_context.info	2010-05-04 12:48:50.000000000 +0100
@@ -0,0 +1,5 @@
+name = OG Context
+description = Provides integration with Context on behalf of Organic Groups
+dependencies[] = context
+package = Context
+core = "6.x"
diff -Nrup og_context-old/og_context.module og_context/og_context.module
--- og_context-old/og_context.module	1970-01-01 01:00:00.000000000 +0100
+++ og_context/og_context.module	2010-05-04 12:46:32.000000000 +0100
@@ -0,0 +1,37 @@
+<?php
+// $Id: og_context.module
+
+/**
+ * Implementation of hook_context_conditions().
+ */
+function og_context_context_conditions() {
+  $items = array();
+  
+  // OG
+  if (module_exists('og')) {
+    $items['og'] = array(
+      '#title' => t('Organic Groups'),
+      '#description' => t('Set this context when in a group context.'),
+      '#options' => array('1' => t('True'), '0' => t('False')),
+      '#type' => 'radios',
+    );
+  }
+  
+  return $items;
+}
+
+// Detect group context after a view is built
+function og_context_views_post_render($view, $args) {
+  og_context_set_context();
+}
+
+// Detect group context on init page view
+function og_context_init() {
+  og_context_set_context();
+}
+
+// Set group context in context if available
+function og_context_set_context() {
+  $group = og_get_group_context();
+  context_set_by_condition('og', $group ? TRUE : FALSE); 
+}
