diff options
author | Dries Buytaert <dries@buytaert.net> | 2011-04-12 20:44:14 +0200 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2011-04-12 20:44:14 +0200 |
commit | 452bac6da55660fe293abb51a77fafd7f287e072 (patch) | |
tree | e731991cb520310ab17f91a56fb9cec854c8d1d5 /includes/menu.inc | |
parent | 2d39a11e82f8747abb87e9408b97e09b5b762c7b (diff) | |
download | brdo-452bac6da55660fe293abb51a77fafd7f287e072.tar.gz brdo-452bac6da55660fe293abb51a77fafd7f287e072.tar.bz2 |
- Patch #1012768 by agentrickard: fire hook_menu_link_delete() before removing the data row.
Diffstat (limited to 'includes/menu.inc')
-rw-r--r-- | includes/menu.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/includes/menu.inc b/includes/menu.inc index f4241221d..007e4a2b9 100644 --- a/includes/menu.inc +++ b/includes/menu.inc @@ -2893,11 +2893,12 @@ function _menu_delete_item($item, $force = FALSE) { menu_link_save($child); } } - db_delete('menu_links')->condition('mlid', $item['mlid'])->execute(); - // Notify modules we have deleted the item. + // Notify modules we are deleting the item. module_invoke_all('menu_link_delete', $item); + db_delete('menu_links')->condition('mlid', $item['mlid'])->execute(); + // Update the has_children status of the parent. _menu_update_parental_status($item); menu_cache_clear($item['menu_name']); |