block.inc in Panels 6.2
Same filename in this branch
Same filename and directory in other branches
styles/block.inc Definition of the 'default' panel style.
File
styles/block.incView source
<?php
/**
* @file styles/block.inc
* Definition of the 'default' panel style.
*/
// ---------------------------------------------------------------------------
// Panels hooks.
/**
* Implementation of hook_panels_style_info().
*/
function panels_block_panels_styles() {
return array(
'block' => array(
'title' => t('System block'),
'description' => t('Display the pane as a system block; this is more restrictive than the default.'),
'render pane' => 'panels_block_style_render_pane',
),
);
}
// ---------------------------------------------------------------------------
// Panels style plugin callbacks.
/**
* Render callback.
*
* @ingroup themeable
*/
function theme_panels_block_style_render_pane($content, $pane, $display) {
if (!empty($content->title)) {
$content->subject = $content->title;
}
return theme('block', $content);
}
Functions
Name | Description |
---|---|
panels_block_panels_styles | Implementation of hook_panels_style_info(). |
theme_panels_block_style_render_pane | Render callback. |