You are here

function block_get_blocks_by_region in Drupal 7

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()
block_page_build in modules/block/block.module
Implements hook_page_build().

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;
}