diff options
Diffstat (limited to 'modules/system/system.module')
-rw-r--r-- | modules/system/system.module | 13 |
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; + } + } } /** |