theme_box
Definition
theme_box($title, $content, $region = 'main')
includes/theme.inc, line 864
Description
Return a themed box.
Parameters
$title The subject of the box.
$content The content of the box.
$region The region in which the box is displayed.
Return value
A string containing the box output.
Related topics
| Name | Description |
|---|---|
| Themeable functions | Functions that display HTML, and which can be customized by themes. |
Code
<?php
function theme_box($title, $content, $region = 'main') {
$output = '<h2 class="title">'. $title .'</h2><div>'. $content .'</div>';
return $output;
}
?> 