You are here

function menu_block_menu_delete in Menu Block 7.3

Same name and namespace in other branches
  1. 7.2 menu_block.module \menu_block_menu_delete()

Implements hook_menu_delete().

File

./menu_block.module, line 947
Provides configurable blocks of menu items.

Code

function menu_block_menu_delete($menu) {

  // Delete menu block variables.
  foreach (variable_get('menu_block_ids', array()) as $delta) {
    $config = menu_block_get_config($delta);
    if ($config['menu_name'] === $menu['menu_name']) {
      menu_block_delete($delta);
    }
  }
  menu_block_menu_order_set_menu($menu['menu_name'], FALSE);
}