function megamenu_block_info in Megamenu 7
Implements hook_block_info().
File
- ./
megamenu.module, line 121 - Takes existing menus and produces blocks that render the menu as a megamenu.
Code
function megamenu_block_info() {
$blocks = array();
$menus = _megamenu_enabled_menus();
foreach ($menus as $menu_name) {
$menu_details = menu_load($menu_name);
$blocks[$menu_name] = array(
'info' => t('Megamenu - @title', array(
'@title' => $menu_details['title'],
)),
'cache' => DRUPAL_CACHE_PER_PAGE,
);
}
return $blocks;
}