function _panels_render_display in Panels 6.2
Render a display by loading the content into an appropriate array and then passing through to panels_render_layout.
if $incoming_content is NULL, default content will be applied. Use an empty string to indicate no content. @render
1 call to _panels_render_display()
- panels_render_display in ./
panels.module - Render a display by loading the content into an appropriate array and then passing through to panels_render_layout.
File
- includes/
display-render.inc, line 18 - Contains Panels display rendering functions.
Code
function _panels_render_display(&$display) {
$layout = panels_get_layout($display->layout);
if (!$layout) {
return NULL;
}
// TODO: This may not be necessary now. Check this.
panels_sanitize_display($display);
$output = '';
// Let modules act just prior to render.
foreach (module_implements('panels_pre_render') as $module) {
$function = $module . '_panels_pre_render';
$output .= $function($display);
}
$output .= panels_render_layout($layout, $display, $display->css_id, $display->layout_settings);
// Let modules act just after render.
foreach (module_implements('panels_post_render') as $module) {
$function = $module . '_panels_post_render';
$output .= $function($display);
}
return $output;
}