Commit f592a5a6 authored by Dries's avatar Dries

- Patch #27669 by ax: fixed menu system status reporting.

parent 50ac9d3b
......@@ -570,8 +570,6 @@ function menu_node_form($edit = array()) {
* Remove the menu item.
*/
function menu_node_form_delete($node) {
if (db_query("DELETE FROM {menu} WHERE path = 'node/%s'", $node->nid)) {
drupal_set_message(t('The menu item has been removed.'));
}
db_query("DELETE FROM {menu} WHERE path = 'node/%s'", $node->nid);
}
......@@ -570,8 +570,6 @@ function menu_node_form($edit = array()) {
* Remove the menu item.
*/
function menu_node_form_delete($node) {
if (db_query("DELETE FROM {menu} WHERE path = 'node/%s'", $node->nid)) {
drupal_set_message(t('The menu item has been removed.'));
}
db_query("DELETE FROM {menu} WHERE path = 'node/%s'", $node->nid);
}
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