? .git
? .gitignore
? region_manager_465052_19.diff
Index: region_manager.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/region_manager/region_manager.module,v
retrieving revision 1.1.2.13
diff -u -p -r1.1.2.13 region_manager.module
--- region_manager.module	4 Jul 2009 00:15:25 -0000	1.1.2.13
+++ region_manager.module	22 Aug 2009 12:03:30 -0000
@@ -57,21 +57,25 @@ function region_manager_help($path, $arg
  */
 function region_manager_init() {
   if (user_access('manage regions')) {
-    global $theme_key;
-
-    init_theme();
-
     // Add css and js.
     $path = drupal_get_path('module', 'region_manager');
     drupal_add_css($path .'/region_manager.css');
+  }
+}
+
+/**
+ * Implementation of hook_preprocess_page().
+ */
+function region_manager_preprocess_page(&$vars) {
+  if (user_access('manage regions')) {
+    global $theme_key;
 
     // Add the menus.
     $regions = variable_get('region_manager_regions_'. $theme_key, array());
     if (!empty($regions)) {
       foreach($regions as $region => $value) {
         if ($value && (!function_exists('visibility_api_visible') || visibility_api_visible($theme_key .':'. $region, 'region_manager'))) {
-          $menu = theme('region_manager_region_menu', $theme_key, $region);
-          drupal_set_content($region, $menu);
+          $vars[$region] = theme('region_manager_region_menu', $theme_key, $region) . $vars[$region];
         }
       }
     }
