You are here

function theme_panels_render_display_form in Panels 6.3

Same name and namespace in other branches
  1. 8.3 panels.module \theme_panels_render_display_form()
  2. 7.3 panels.module \theme_panels_render_display_form()

Theme function to render our panel as a form.

When rendering a display as a form, the entire display needs to be inside the <form> tag so that the form can be spread across the panes. This sets up the form system to be the main caller and we then operate as a theme function of the form.

Related topics

File

./panels.module, line 1039
panels.module

Code

function theme_panels_render_display_form($form) {
  $form['#children'] = $form['#display']
    ->render();
  drupal_render($form);
  return theme('form', $form);
}