You are here

function power_menu_delete_menu_item_callback in Power Menu 6

Same name and namespace in other branches
  1. 7 power_menu.module \power_menu_delete_menu_item_callback()

When deleting a menu item we have to make sure we also clean out our table

_state

Parameters

array $form:

1 string reference to 'power_menu_delete_menu_item_callback'
power_menu_form_menu_item_delete_form_alter in ./power_menu.module
Implementation of hook_form_ID_alter().

File

./power_menu.module, line 514
This module provides some additional menu features. The features are not actually new, but are part of other modules. it's though very cumbersome to creating a new menu item, because one has to go to all the different places to configure these…

Code

function power_menu_delete_menu_item_callback($form, $form_state) {
  db_query("DELETE FROM {power_menu} WHERE mlid = %d", $form['#item']['mlid']);
}