theme_blocks
- Versions
- 4.6 – 6
theme_blocks($region)
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
Code
includes/theme.inc, line 860
<?php
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;
}
?>Login or register to post comments 