You are here

function ultimenu_block_info in Ultimenu 7

Implements hook_block_info().

File

./ultimenu.module, line 96
Build Ultimenu regions based on enabled menu and its available menu items.

Code

function ultimenu_block_info() {
  $blocks = array();
  $block_items = ultimenu_get_blocks();
  foreach ($block_items as $delta => $info) {
    $blocks[$delta] = array(
      'info' => t('Ultimenu: @title', array(
        '@title' => $info,
      )),
      'cache' => DRUPAL_CACHE_PER_PAGE,
      'status' => 0,
      'region' => 'none',
    );
  }
  return $blocks;
}