Same name and namespace in other branches
  1. 4.7.x includes/theme.inc \theme_blocks()
  2. 5.x includes/theme.inc \theme_blocks()
  3. 6.x 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 theme call to theme_blocks()
theme_page in includes/theme.inc
Return an entire Drupal page displaying the supplied content.

File

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

Code

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

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