summaryrefslogtreecommitdiff
path: root/modules/system/system.admin.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-05-21 21:12:25 +0000
committerDries Buytaert <dries@buytaert.net>2009-05-21 21:12:25 +0000
commit02c8592759c5b33d3d94fe6a515f10af4317dd5c (patch)
tree570ec558b6f70565d40a3e4f30cac3515c752c48 /modules/system/system.admin.inc
parent51948a790b92a44e6d1bccb62332cbd413b36f00 (diff)
downloadbrdo-02c8592759c5b33d3d94fe6a515f10af4317dd5c.tar.gz
brdo-02c8592759c5b33d3d94fe6a515f10af4317dd5c.tar.bz2
- Patch #428744 by Gabor: make the main page content a real block and clean up some of the content API.
Diffstat (limited to 'modules/system/system.admin.inc')
-rw-r--r--modules/system/system.admin.inc7
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc
index e352a60dc..a9f040f96 100644
--- a/modules/system/system.admin.inc
+++ b/modules/system/system.admin.inc
@@ -179,7 +179,9 @@ function system_themes_form() {
}
else {
// Ensure this theme is compatible with this version of core.
- if (!isset($theme->info['core']) || $theme->info['core'] != DRUPAL_CORE_COMPATIBILITY) {
+ // Require the 'content' region to make sure the main page
+ // content has a common place in all themes.
+ if (!isset($theme->info['core']) || ($theme->info['core'] != DRUPAL_CORE_COMPATIBILITY) || (!isset($theme->info['regions']['content']))) {
$incompatible_core[] = $theme->name;
}
if (version_compare(phpversion(), $theme->info['php']) < 0) {
@@ -1882,7 +1884,8 @@ function system_batch_page() {
elseif (isset($output)) {
// Force a page without blocks or messages to
// display a list of collected messages later.
- $page = drupal_get_page($output);
+ drupal_set_page_content($output);
+ $page = element_info('page');
$page['#show_blocks'] = FALSE;
$page['#show_messages'] = FALSE;
return $page;