You are here

function theme_box in Drupal 6

Same name and namespace in other branches
  1. 4 includes/theme.inc \theme_box()
  2. 5 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

3 theme calls to theme_box()
comment_form_box in modules/comment/comment.module
Theme the comment form box.
search_view in modules/search/search.pages.inc
Menu callback; presents the search form and/or search results.
theme_comment_controls in modules/comment/comment.module
Theme comment controls box where the user can change the default display mode and display order of comments.

File

includes/theme.inc, line 1491
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;
}