function tb_megamenu_block_view_alter in The Better Mega Menu 7
Implements hook_block_view_alter().
File
- ./
tb_megamenu.module, line 343
Code
function tb_megamenu_block_view_alter(&$data, $block) {
if (isset($data['content']) && is_array($data['content']) && $block->module == 'tb_megamenu') {
$data['content']['#contextual_links']['menu_config'] = array(
'admin/structure/menu/manage',
array(
$block->delta,
),
);
$data['content']['#contextual_links']['tb_megamenu_config'] = array(
'admin/structure/tb-megamenu',
array(
$block->delta,
),
);
}
}