function panels_page_render_page_form in Panels 6.2
Execute a panels_page render with an embedded form.
Parameters
$panel_page:
$args:
File
- panels_page/
panels_page.render.inc, line 120 - panels_page.render.inc Functions utilized during the panels_page render process. On any given page request, this file is lazy-loaded by panels_page itself only after it has been absolutely verified that a panels_page render should be done.
Code
function panels_page_render_page_form($panel_page, $args) {
_panels_page_prepare_display($panel_page, $args);
$form = drupal_clone($panel_page->form);
$form->form['#theme'] = 'panels_page_render_form';
$form->form['#display'] = $panel_page->display;
$output = drupal_render_form($form->form_id, $form->form);
panels_page_custom_css($panel_page);
if ($panel_page->no_blocks) {
print theme('page', $output, FALSE);
}
else {
return $output;
}
}