block_get_blocks_by_region

7 block.module block_get_blocks_by_region($region)
8 block.module block_get_blocks_by_region($region)

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

Parameters

$region: The requested region.

Return value

A renderable array of a region containing all enabled blocks.

1 call to block_get_blocks_by_region()

File

modules/block/block.module, line 316
Controls the visual building blocks a page is constructed with.

Code

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