You are here

function block_menu_delete in Drupal 7

Same name and namespace in other branches
  1. 8 core/modules/block/block.module \block_menu_delete()
  2. 9 core/modules/block/block.module \block_menu_delete()

Implements hook_menu_delete().

File

modules/block/block.module, line 1062
Controls the visual building blocks a page is constructed with.

Code

function block_menu_delete($menu) {
  db_delete('block')
    ->condition('module', 'menu')
    ->condition('delta', $menu['menu_name'])
    ->execute();
  db_delete('block_role')
    ->condition('module', 'menu')
    ->condition('delta', $menu['menu_name'])
    ->execute();
}