|
|
Drupal example source code file (panels_renderer_simple.class.php)
The panels_renderer_simple.class.php Drupal example source code<?php /** * @file * Contains the simple display renderer. */ /** * The simple display renderer renders a display normally, except each pane * is already rendered content, rather than a pane containing CTools content * to be rendered. Styles are not supported. */ class panels_renderer_simple extends panels_renderer_standard { function render_regions() { $this->rendered['regions'] = array(); foreach ($this->display->content as $region_id => $content) { if (is_array($content)) { $content = implode('', $content); } $this->rendered['regions'][$region_id] = $content; } return $this->rendered['regions']; } function render_panes() { // NOP } function prepare() { $this->prep_run = TRUE; } } Other Drupal examples (source code examples)Here is a short list of links related to this Drupal panels_renderer_simple.class.php source code file: |
"Drupal" is a registered trademark of Dries Buytaert.
my drupal tutorials and examples
Copyright
1998-2016 Alvin Alexander, alvinalexander.com
All Rights Reserved.
Beginning in 2016, a portion of the proceeds from pages under the '/drupal-code-examples/' URI will be donated to charity.