function panels_renderer_standard::render_panes in Panels 7.3
Same name and namespace in other branches
- 6.3 plugins/display_renderers/panels_renderer_standard.class.php \panels_renderer_standard::render_panes()
Render all prepared panes, first by dispatching to their plugin's render callback, then handing that output off to the pane's style plugin.
Return value
array The array of rendered panes, keyed on pane pid.
1 call to panels_renderer_standard::render_panes()
- panels_renderer_standard::render_layout in plugins/
display_renderers/ panels_renderer_standard.class.php - Perform display/layout-level render operations.
1 method overrides panels_renderer_standard::render_panes()
- panels_renderer_simple::render_panes in plugins/
display_renderers/ panels_renderer_simple.class.php - Render all prepared panes, first by dispatching to their plugin's render callback, then handing that output off to the pane's style plugin.
File
- plugins/
display_renderers/ panels_renderer_standard.class.php, line 525
Class
Code
function render_panes() {
drupal_alter('panels_prerender_panes', $this);
ctools_include('content');
// First, render all the panes into little boxes.
$this->rendered['panes'] = array();
foreach ($this->prepared['panes'] as $pid => $pane) {
$content = $this
->render_pane($pane);
if ($content) {
$this->rendered['panes'][$pid] = $content;
}
}
return $this->rendered['panes'];
}