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.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!block!block.module/function/block_get_blocks_by_region/7.x

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部