theme_blocks($region)
drupal/includes/theme.inc, line 860
Return a set of blocks available for the current user.
$region Which set of blocks to retrieve.
A string containing the themed blocks for this region.
| Name | Description |
|---|---|
| Themeable functions | Functions that display HTML, and which can be customized by themes. |
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;
}