You are here

function theme_panels_render_display_form in Panels 7.3

Same name and namespace in other branches
  1. 8.3 panels.module \theme_panels_render_display_form()
  2. 6.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.

File

./panels.module, line 1326
Core functionality for the Panels engine.

Code

function theme_panels_render_display_form($vars) {
  return $vars['element']['#display']
    ->render();
}