summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Barth2010-09-18 00:31:56 +0000
committerAlex Barth2010-09-18 00:31:56 +0000
commit44631f61be4b7a8e9b11f5d3d3c80bc209f38568 (patch)
treeb9f312a9fedc8fb3337882892a37421c1817de23
parent1b01e7c0a26be51adb0b51d8db719cdb83e50d13 (diff)
Fix fact that feeds_get_form() returns an array now.
-rw-r--r--feeds_ui/feeds_ui.admin.inc11
1 files changed, 8 insertions, 3 deletions
diff --git a/feeds_ui/feeds_ui.admin.inc b/feeds_ui/feeds_ui.admin.inc
index 528c116..c4c2219 100644
--- a/feeds_ui/feeds_ui.admin.inc
+++ b/feeds_ui/feeds_ui.admin.inc
@@ -722,7 +722,7 @@ function theme_feeds_ui_edit_page($variables) {
* array(
* 'title' => 'the title',
* 'body' => 'the body of the container, may also be an array of more
- * containers.',
+ * containers or a renderable array.',
* 'class' => array('the class of the container.'),
* 'id' => 'the id of the container',
* );
@@ -751,8 +751,13 @@ function theme_feeds_ui_container($variables) {
if (!empty($container['body'])) {
$output .= '<div class="feeds-container-body">';
if (is_array($container['body'])) {
- foreach ($container['body'] as $c) {
- $output .= theme('feeds_ui_container', array('container' => $c));
+ if (isset($container['body']['#type'])) {
+ $output .= drupal_render($container['body']);
+ }
+ else {
+ foreach ($container['body'] as $c) {
+ $output .= theme('feeds_ui_container', array('container' => $c));
+ }
}
}
else {