From 6d1ce3866cdd543bf7ae9a33439d37a33492d248 Mon Sep 17 00:00:00 2001 From: David Rothstein Date: Sun, 29 Jul 2012 18:19:43 -0400 Subject: Issue #1373312 by sun: Assign system_main() block to 'content' region and help block to 'help' region by default. --- modules/system/system.module | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'modules') diff --git a/modules/system/system.module b/modules/system/system.module index 48b2959c6..9897fb25e 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -2023,6 +2023,10 @@ function system_block_info() { 'info' => t('Main page content'), // Cached elsewhere. 'cache' => DRUPAL_NO_CACHE, + // Auto-enable in 'content' region by default, which always exists. + // @see system_themes_page(), drupal_render_page() + 'status' => 1, + 'region' => 'content', ); $blocks['powered-by'] = array( 'info' => t('Powered by Drupal'), @@ -2033,6 +2037,9 @@ function system_block_info() { 'info' => t('System help'), 'weight' => '5', 'cache' => DRUPAL_NO_CACHE, + // Auto-enable in 'help' region by default, if the theme defines one. + 'status' => 1, + 'region' => 'help', ); // System-defined menu blocks. foreach (menu_list_system_menus() as $menu_name => $title) { -- cgit v1.2.3