You are here

function advanced_menu_blocks_block_view_alter in Advanced Menu 7

Implements hook_block_view_alter().

File

blocks/advanced_menu_blocks.module, line 61
Provides block customization settings for menus.

Code

function advanced_menu_blocks_block_view_alter(&$data, $block) {
  if ($block->module == 'menu' && _advanced_menu_blocks_disabled($block->delta) == array(
    1,
  )) {
    unset($data['content']);
  }
}