Merging DRUPAL-6--2 back into HEAD before branching to DRUPAL-6--3.
[project/panels.git] / styles / block.inc
CommitLineData
db205271
EM
1<?php
2// $Id$
3
4/**
5 * @file styles/block.inc
6 * Definition of the 'default' panel style.
7 */
8
9// ---------------------------------------------------------------------------
10// Panels hooks.
11
12/**
13 * Implementation of hook_panels_style_info().
14 */
15function panels_block_panels_styles() {
16 return array(
17 'block' => array(
18 'title' => t('System block'),
19 'description' => t('Display the pane as a system block; this is more restrictive than the default.'),
20 'render pane' => 'panels_block_style_render_pane',
21 ),
22 );
23}
24
25// ---------------------------------------------------------------------------
26// Panels style plugin callbacks.
27
28/**
29 * Render callback.
30 *
31 * @ingroup themeable
32 */
33function theme_panels_block_style_render_pane($content, $pane, $display) {
34 if (!empty($content->title)) {
35 $content->subject = $content->title;
36 }
37 return theme('block', $content);
38}
39