Skip to content
Snippets Groups Projects
Commit 44631f61 authored by Alex Barth's avatar Alex Barth
Browse files

Fix fact that feeds_get_form() returns an array now.

parent 1b01e7c0
No related branches found
No related tags found
No related merge requests found
...@@ -722,7 +722,7 @@ function theme_feeds_ui_edit_page($variables) { ...@@ -722,7 +722,7 @@ function theme_feeds_ui_edit_page($variables) {
* array( * array(
* 'title' => 'the title', * 'title' => 'the title',
* 'body' => 'the body of the container, may also be an array of more * '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.'), * 'class' => array('the class of the container.'),
* 'id' => 'the id of the container', * 'id' => 'the id of the container',
* ); * );
...@@ -751,8 +751,13 @@ function theme_feeds_ui_container($variables) { ...@@ -751,8 +751,13 @@ function theme_feeds_ui_container($variables) {
if (!empty($container['body'])) { if (!empty($container['body'])) {
$output .= '<div class="feeds-container-body">'; $output .= '<div class="feeds-container-body">';
if (is_array($container['body'])) { if (is_array($container['body'])) {
foreach ($container['body'] as $c) { if (isset($container['body']['#type'])) {
$output .= theme('feeds_ui_container', array('container' => $c)); $output .= drupal_render($container['body']);
}
else {
foreach ($container['body'] as $c) {
$output .= theme('feeds_ui_container', array('container' => $c));
}
} }
} }
else { else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment