diff --git a/modules/block/block.module b/modules/block/block.module index d5d9592..3a6d2f6 100644 --- modules/block/block.module +++ modules/block/block.module @@ -257,6 +257,14 @@ function block_page_build(&$page) { } } } + + // With the block module, it's possible to disable the main content block. + // By default, Drupal gets mad at us if we do that to protect users from + // completely locking themselves out of the site by disabling page-managing + // modules, but since this is a page-manging module, we're in charge of the + // main content, not system module. + $system_main_content_added = &drupal_static('system_main_content_added'); + $system_main_content_added = TRUE; } /**