function theme_box in Drupal 4
Same name and namespace in other branches
- 5 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
5 theme calls to theme_box()
- archive_page in modules/
archive.module - Menu callback; lists all nodes posted on a given date.
- comment_form in modules/
comment.module - menu_overview_tree in modules/
menu.module - Present the menu tree, rendered along with links to edit menu items.
- search_view in modules/
search.module - Menu callback; presents the search form and/or search results.
- theme_comment_controls in modules/
comment.module
File
- includes/
theme.inc, line 790 - 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;
}