Structural changes to make form contexts work again.
authorEarl Miles
Thu, 3 Mar 2011 00:45:48 +0000 (16:45 -0800)
committerEarl Miles
Thu, 3 Mar 2011 00:45:48 +0000 (16:45 -0800)
panels.module

index c4bf91a..49e8079 100644 (file)
@@ -52,7 +52,7 @@ function panels_theme() {
     'file' => 'includes/common.inc',
   );
   $theme['panels_render_display_form'] = array(
-    'variables' => array('form' => NULL),
+    'render element' => 'element',
   );
 
   $theme['panels_dashboard'] = array(
@@ -1044,8 +1044,8 @@ function panels_render_display(&$display, $renderer = NULL) {
  */
 function theme_panels_render_display_form($vars) {
   // @todo this is probably broken in D7
-  $vars['form']['#children'] = $vars['form']['#display']->render();
-  render($vars['form']);
+  $render = $vars['element']['#display']->render();
+  $vars['element']['#children'] = $render;
   return theme('form', $vars);
 }