block_get_blocks_by_region

Versions
7
block_get_blocks_by_region($region)

Get a renderable array of a region containing all enabled blocks.

Parameters

$region The requested region.

Code

modules/block/block.module, line 258

<?php
function block_get_blocks_by_region($region) {
  $build = array();
  if ($list = block_list($region)) {
    $build = _block_get_renderable_array($list);
  }
  return $build;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.