function workbench_access_menu_delete in Workbench Access 7
Implements hook_menu_delete().
If an active menu is deleted, cascade the change through our system.
File
- modules/
menu.workbench_access.inc, line 238 - Menu integration for Workbench Access.
Code
function workbench_access_menu_delete($menu) {
$access_scheme = db_query("SELECT * FROM {workbench_access} WHERE access_type = :access_type AND access_id = :access_id", array(
':access_type' => 'menu',
':access_id' => $menu['menu_name'],
))
->fetchAssoc();
if (!empty($access_scheme)) {
workbench_access_section_delete($access_scheme);
}
}