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

File

modules/block/block.module, line 316

Code

function block_get_blocks_by_region($region) {
    $build = array();
    if ($list = block_list($region)) {
        $build = _block_get_renderable_array($list);
    }
    return $build;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.