? context-patch.diff
Index: context_reaction_theme.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/context_reaction_theme/context_reaction_theme.module,v
retrieving revision 1.1.2.1
diff -u -p -r1.1.2.1 context_reaction_theme.module
--- context_reaction_theme.module	17 Feb 2010 20:55:59 -0000	1.1.2.1
+++ context_reaction_theme.module	14 Oct 2010 19:53:26 -0000
@@ -5,11 +5,10 @@
  */
 function context_reaction_theme_init() {
   if ($plugin = context_get_plugin('reaction', 'context_reaction_active_theme')) {
-    $plugin->execute($region);
+    $plugin->execute();
   }
 }
 
-
 /**
  * Notify CTools that we'll be using the plugin API with Context module
  */
@@ -48,4 +47,4 @@ function context_reaction_theme_context_
       ),
     ),
   );
-}
\ No newline at end of file
+}
Index: plugins/context_reaction_active_theme.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/context_reaction_theme/plugins/context_reaction_active_theme.inc,v
retrieving revision 1.1.2.1
diff -u -p -r1.1.2.1 context_reaction_active_theme.inc
--- plugins/context_reaction_active_theme.inc	17 Feb 2010 20:55:59 -0000	1.1.2.1
+++ plugins/context_reaction_active_theme.inc	14 Oct 2010 19:53:26 -0000
@@ -7,13 +7,14 @@
 class context_reaction_active_theme extends context_reaction {
 
   /**
-   * Allow admins to provide a section title, section subtitle and section class.
+   * Allow admins to choose the theme to be set.
    */
   function options_form($context) {
     $options = array();
-    $themes = list_themes();
-    foreach($themes as $name => $theme) {
-      if($theme->status == 1) $options[$name] = $name;
+    foreach (list_themes() as $name => $theme) {
+      if ($theme->status) {
+        $options[$name] = $name;
+      }
     }
 
     $form = array(
@@ -31,17 +32,13 @@ class context_reaction_active_theme exte
   }
 
   /**
-   * Set 'section_title', and 'section_subtitle' if not set and merge all
-   * additional classes onto the 'body_classes'.
+   * Set the active theme.
    */
-  function execute(&$vars) {
-    $contexts = context_active_contexts();
-    $classes = array();
-
-    foreach ($contexts as $k => $v) {
-      if (!empty($v->reactions[$this->plugin]['theme'])) {
-          global $custom_theme;
-          $custom_theme = $v->reactions[$this->plugin]['theme'];
+  function execute() {
+    foreach (context_active_contexts() as $context) {
+      if (!empty($context->reactions[$this->plugin]['theme'])) {
+        global $custom_theme;
+        $custom_theme = $context->reactions[$this->plugin]['theme'];
       }
     }
   }
