block.inc

Go to the documentation of this file.
00001 <?php
00002 // $Id: block.inc,v 1.1.2.1 2008/07/08 00:26:55 merlinofchaos Exp $
00003 
00004 /**
00005  * @file styles/block.inc
00006  * Definition of the 'default' panel style.
00007  */
00008 
00009 // ---------------------------------------------------------------------------
00010 // Panels hooks.
00011 
00012 /**
00013  * Implementation of hook_panels_style_info().
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 // Panels style plugin callbacks.
00027 
00028 /**
00029  * Render callback.
00030  *
00031  * @ingroup themeable
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 

Generated on Sun Feb 5 05:00:12 2012 for Panels 2 by  doxygen 1.5.6