function block_menu_delete
Same name in other branches
- 9 core/modules/block/block.module \block_menu_delete()
- 8.9.x core/modules/block/block.module \block_menu_delete()
- 10 core/modules/block/block.module \block_menu_delete()
- 11.x core/modules/block/block.module \block_menu_delete()
Implements hook_menu_delete().
File
-
modules/
block/ block.module, line 1062
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();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.