You are here

function groupmenu_block_info in Group Menu 7

Implements hook_block_info().

File

./groupmenu.module, line 1011
Integrates menu with Group.

Code

function groupmenu_block_info() {

  // Blocks can only be used when using the groupcontext module.
  // @see https://www.drupal.org/sandbox/mike.davis/2568111.
  if (!module_exists('groupcontext')) {
    return array();
  }
  $blocks = array(
    'groupmenu_single_block' => array(
      'info' => t('Group Menu : single'),
      'cache' => DRUPAL_NO_CACHE,
    ),
    'groupmenu_multi_block' => array(
      'info' => t('Group Menu : multiple'),
      'cache' => DRUPAL_NO_CACHE,
    ),
  );
  return $blocks;
}