summaryrefslogtreecommitdiff
path: root/modules/system/system.module
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-05 02:43:01 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-05 02:43:01 +0000
commit93eb8b341392b5a04488d0d3a0a9d8136da6a2cf (patch)
treec89749ab99ae2c368be24221b4603a9d4886f69e /modules/system/system.module
parent03f9a31663c2aa8e1e62f7c8ee8d8eefbb1444db (diff)
downloadbrdo-93eb8b341392b5a04488d0d3a0a9d8136da6a2cf.tar.gz
brdo-93eb8b341392b5a04488d0d3a0a9d8136da6a2cf.tar.bz2
#60552 by JohnAlbin: Added Add region.tpl.php for all regions in themes.
Diffstat (limited to 'modules/system/system.module')
-rw-r--r--modules/system/system.module13
1 files changed, 12 insertions, 1 deletions
diff --git a/modules/system/system.module b/modules/system/system.module
index 6a5d8187c..4464e6c54 100644
--- a/modules/system/system.module
+++ b/modules/system/system.module
@@ -2714,7 +2714,6 @@ function theme_system_compact_link() {
return $output;
}
-
/**
* Send Drupal and the major version number in the META GENERATOR HTML.
*
@@ -2802,6 +2801,18 @@ function system_page_build(&$page) {
'#markup' => theme('system_run_cron_image', 'system/run-cron-image'),
);
}
+
+ // Find all block regions so they can be rendered.
+ $regions = system_region_list($GLOBALS['theme']);
+
+ // Load all region content assigned via blocks.
+ foreach (array_keys($regions) as $region) {
+ // Don't render empty regions.
+ if (!empty($page[$region])) {
+ $page[$region]['#theme_wrappers'][] = 'region';
+ $page[$region]['#region'] = $region;
+ }
+ }
}
/**