diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-05-12 08:37:45 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-05-12 08:37:45 +0000 |
commit | 847304a2934b062544e87160ec8524e9275e8247 (patch) | |
tree | 9dfd13d0402d9a109694e9a4e4ad931201da0ec1 /includes/common.inc | |
parent | da87545c487eb2e46dbc6c7b9e054b2e5be4a5b0 (diff) | |
download | brdo-847304a2934b062544e87160ec8524e9275e8247.tar.gz brdo-847304a2934b062544e87160ec8524e9275e8247.tar.bz2 |
- Patch #353069 by Moshe Weitzman, dmitrig01: make drupal_get_form() return unrendered forms.
Diffstat (limited to 'includes/common.inc')
-rw-r--r-- | includes/common.inc | 4 |
1 files changed, 2 insertions, 2 deletions
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 |