Commit e78f1a6f authored by Dries's avatar Dries

- Patch #1012768 by agentrickard: fire hook_menu_link_delete() before removing the data row.

parent 2edc3029
......@@ -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']);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment