home | career | drupal | java | mac | mysql | perl | php | scala | uml | unix

Drupal example source code file (panels_renderer_simple.class.php)

This example Drupal source code file (panels_renderer_simple.class.php) is included in the DevDaily.com "Drupal Source Code Warehouse" project. The intent of this project is to help you "Learn Drupal by Example".

PHP - Drupal tags/keywords

array, as, content, extends, foreach, function, implode, is_array, panels_renderer_simple, php, region_id, return, string, true

The panels_renderer_simple.class.php Drupal example source code

 * @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:

new blog posts

"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.