diff --git a/feeds_ui/feeds_ui.admin.inc b/feeds_ui/feeds_ui.admin.inc index 528c11621c74a42eba8cbc308d4fe1fa3ba490ba..c4c2219c048eacfbe726663e392a6da61c7fdd52 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 .= '
'; 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 {