You are here

function theme_blocks in Drupal 5

Same name and namespace in other branches
  1. 4 includes/theme.inc \theme_blocks()
  2. 6 includes/theme.inc \theme_blocks()

Return a set of blocks available for the current user.

Parameters

$region: Which set of blocks to retrieve.

Return value

A string containing the themed blocks for this region.

Related topics

1 call to theme_blocks()
chameleon_page in themes/chameleon/chameleon.theme
3 theme calls to theme_blocks()
phptemplate_page in themes/engines/phptemplate/phptemplate.engine
Prepare the values passed to the theme_page function to be passed into a pluggable template engine. Uses the arg() function to generate a series of page template files suggestions based on the current path. If none are found, the default page.tpl.php…
theme_page in includes/theme.inc
Return an entire Drupal page displaying the supplied content.
_phptemplate_default_variables in themes/engines/phptemplate/phptemplate.engine
Adds additional helper variables to all templates.

File

includes/theme.inc, line 1022
The theme system, which controls the output of Drupal.

Code

function theme_blocks($region) {
  $output = '';
  if ($list = block_list($region)) {
    foreach ($list as $key => $block) {

      // $key == <i>module</i>_<i>delta</i>
      $output .= theme('block', $block);
    }
  }

  // Add any content assigned to this region through drupal_set_content() calls.
  $output .= drupal_get_content($region);
  return $output;
}