You are here

function panels_page_prepare_panels_render in Panels 6.2

Load the $load object with all the necessary data for the current panels_page callback.

Parameters

$load: A single panels_page master loader object.

$panel_page:

$args:

2 calls to panels_page_prepare_panels_render()
panels_page_preview_page in panels_page/panels_page.admin.inc
_panels_page_master_loader in panels_page/panels_page.module
Determine the render-time behavior of panels_page.

File

panels_page/panels_page.render.inc, line 19
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_prepare_panels_render(&$load, &$panel_page) {
  _panels_page_prepare_panels_render($panel_page);

  // TODO the original logic is commented out, but retained; switch back to it if anything quirky happens
  // $load->title          = (!$panel_page->display->hide_title && $title = filter_xss_admin(panels_page_get_title($panel_page, 'page', ''))) ? $title : '';
  $load->title = $panel_page->display->hide_title ? '' : filter_xss_admin(panels_page_get_title($panel_page, 'page', ''));
  $load->page_callback = 'panels_page_render_page_' . ($panel_page->form ? 'form' : 'normal');

  // Pass by ref to ENSURE php4/5 consistency and minimize static cache size.
  $load->panel_page =& $panel_page;
  $load->page_arguments = array(
    &$load->panel_page,
    $load->panel_args,
    FALSE,
  );
  return $load;
}