From 93eb8b341392b5a04488d0d3a0a9d8136da6a2cf Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Mon, 5 Oct 2009 02:43:01 +0000 Subject: #60552 by JohnAlbin: Added Add region.tpl.php for all regions in themes. --- modules/system/system.module | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'modules/system/system.module') 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; + } + } } /** -- cgit v1.2.3