Index: context_layouts/context_layouts.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/context/context_layouts/Attic/context_layouts.module,v
retrieving revision 1.1.2.6
diff -u -p -r1.1.2.6 context_layouts.module
--- context_layouts/context_layouts.module	5 Aug 2010 08:03:29 -0000	1.1.2.6
+++ context_layouts/context_layouts.module	19 Aug 2010 22:01:24 -0000
@@ -55,6 +55,15 @@ function context_layouts_preprocess_page
   $plugin = context_get_plugin('reaction', 'block');
   if ($plugin && method_exists($plugin, 'add_layout_stylesheet')) {
     $plugin->add_layout_template($vars);
+    $layout = $plugin->get_active_layout();
+    if (isset($layout['module']) && isset($layout['theme_hook'])) {
+      $theme_hook = $layout['theme_hook'];
+      $regions = array();
+      foreach ($layout['regions'] as $region) {
+        $regions[$region] = theme('blocks', $region);
+        $vars['content'] = $theme_hook($vars['content'], $regions);
+      }
+    }
   }
 }
 
@@ -94,6 +103,18 @@ function context_layouts_get_layouts($th
         }
       }
     }
+    foreach (module_implements('context_layouts') as $name) {
+      $function = $name . '_context_layouts';
+      $result = $function();
+      if (isset($result)) {
+        foreach ($result as $key => $layout_info) {
+          if (!isset($layouts[$theme][$key])) {
+            $layout_info['module'] = $name;
+            $layouts[$key] = $layout_info;
+          }
+        }
+      }
+    }
   }
   return isset($layouts[$theme]) ? $layouts[$theme] : FALSE;
 }
Index: context_layouts/plugins/context_layouts_reaction_block.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/context/context_layouts/plugins/Attic/context_layouts_reaction_block.inc,v
retrieving revision 1.1.2.5
diff -u -p -r1.1.2.5 context_layouts_reaction_block.inc
--- context_layouts/plugins/context_layouts_reaction_block.inc	28 Jul 2010 22:56:06 -0000	1.1.2.5
+++ context_layouts/plugins/context_layouts_reaction_block.inc	19 Aug 2010 22:01:24 -0000
@@ -52,7 +52,7 @@ class context_layouts_reaction_block ext
   function add_layout_stylesheet() {
     if ($layout = $this->get_active_layout()) {
       if (!empty($layout['stylesheet'])) {
-        drupal_add_css(drupal_get_path('theme', $layout['theme']) .'/'. $layout['stylesheet']);
+        drupal_add_css(drupal_get_path(isset($layout['module']) ? 'module' : 'theme', isset($layout['module']) ? $layout['module'] : $layout['theme']) .'/'. $layout['stylesheet']);
       }
     }
   }
