function theme_blocks in Drupal 6
Same name and namespace in other branches
- 4 includes/theme.inc \theme_blocks()
- 5 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
1 theme call to theme_blocks()
- template_preprocess_page in includes/
theme.inc - Process variables for page.tpl.php
File
- includes/
theme.inc, line 1651 - 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;
}