You are here

function blockgroup_block_info in Block Group 7

Same name and namespace in other branches
  1. 7.2 blockgroup.module \blockgroup_block_info()

Implements hook_block_info().

File

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

Code

function blockgroup_block_info() {
  $blocks = array();

  // Build up a mapping region_key => title.
  $blockgroups = blockgroup_list();
  foreach ($blockgroups as $delta => $title) {
    $blocks[$delta] = array(
      'info' => t('Block group: @title', array(
        '@title' => $title,
      )),
      'cache' => DRUPAL_NO_CACHE,
    );
  }
  return $blocks;
}