You are here

function blockgroup_block_view in Block Group 7.2

Same name and namespace in other branches
  1. 7 blockgroup.module \blockgroup_block_view()

Implements hook_block_view().

Only supply a placeholder block. Use a pre_render callback which will populate the block with the content of the proper block-group region.

File

./blockgroup.module, line 317
Add block groups to block configuration page

Code

function blockgroup_block_view($delta) {
  $block['content'] = array(
    '#type' => 'blockgroup_pullup',
    '#key' => blockgroup_get_region($delta),
  );
  return $block;
}