You are here

function theme_panels_block_style_render_pane in Panels 6.3

Same name and namespace in other branches
  1. 5.2 styles/block.inc \theme_panels_block_style_render_pane()
  2. 6.2 styles/block.inc \theme_panels_block_style_render_pane()
  3. 7.3 plugins/styles/block.inc \theme_panels_block_style_render_pane()

Render callback.

File

plugins/styles/block.inc, line 21
Definition of the 'block' panel style.

Code

function theme_panels_block_style_render_pane($content, $pane, $display) {
  if (empty($content->content)) {
    return;
  }
  if (!empty($content->title)) {
    $content->subject = $content->title;
  }
  $content->region = $pane->panel;
  if (!isset($content->module)) {
    $content->module = $content->type;
  }
  if (!isset($content->delta)) {
    $content->delta = $content->subtype;
  }

  // If using per pane classes, $block->css_class will need to be added in your
  // preprocess or template, along with any other Panels specific field you
  // might want to utilize.
  return theme('block', $content);
}