block.inc
Go to the documentation of this file.00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 function panels_block_panels_styles() {
00016 return array(
00017 'block' => array(
00018 'title' => t('System block'),
00019 'description' => t('Display the pane as a system block; this is more restrictive than the default.'),
00020 'render pane' => 'panels_block_style_render_pane',
00021 ),
00022 );
00023 }
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033 function theme_panels_block_style_render_pane($content, $pane, $display) {
00034 if (!empty($content->title)) {
00035 $content->subject = $content->title;
00036 }
00037 return theme('block', $content);
00038 }
00039