block_get_blocks_by_region
function block_get_blocks_by_region
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.
File
- modules/block/block.module, line 318
- 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; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.登录查看完整内容