You are here

function context_reaction_block::block_get_blocks_by_region in Context 7.3

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

1 call to context_reaction_block::block_get_blocks_by_region()
context_reaction_block::execute in plugins/context_reaction_block.inc
Execute.

File

plugins/context_reaction_block.inc, line 348

Class

context_reaction_block
Expose blocks as context reactions.

Code

function block_get_blocks_by_region($region) {
  module_load_include('module', 'block', 'block');
  $build = array();
  if ($list = $this
    ->block_list($region)) {
    $build = _block_get_renderable_array($list);
  }
  if ($this
    ->is_editable_region($region)) {
    $build = $this
      ->editable_region($region, $build);
  }
  return $build;
}