From 847304a2934b062544e87160ec8524e9275e8247 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 12 May 2009 08:37:45 +0000 Subject: - Patch #353069 by Moshe Weitzman, dmitrig01: make drupal_get_form() return unrendered forms. --- includes/common.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes/common.inc') diff --git a/includes/common.inc b/includes/common.inc index 46d320d54..ea7b02a74 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -3252,8 +3252,8 @@ function drupal_get_page($content = NULL) { * @see drupal_get_page() */ function drupal_render_page($page) { - // Allow menu callbacks to return strings. - if (is_string($page)) { + // Allow menu callbacks to return strings, or bare content arrays. + if (is_string($page) || empty($page['content'])) { $page = drupal_get_page($page); } // Modules alter the $page as needed. Blocks are populated into regions like -- cgit v1.2.3