function theme_box in Drupal 5
Same name and namespace in other branches
- 4 includes/theme.inc \theme_box()
- 6 includes/theme.inc \theme_box()
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
4 theme calls to theme_box()
- comment_form_box in modules/
comment/ comment.module - menu_overview_tree in modules/
menu/ menu.module - Present the menu tree, rendered along with links to edit menu items.
- search_view in modules/
search/ search.module - Menu callback; presents the search form and/or search results.
- theme_comment_controls in modules/
comment/ comment.module
File
- includes/
theme.inc, line 869 - The theme system, which controls the output of Drupal.
Code
function theme_box($title, $content, $region = 'main') {
$output = '<h2 class="title">' . $title . '</h2><div>' . $content . '</div>';
return $output;
}