You are here

function ack_menu_item_delete_submit in Access Control Kit 7

Submit handler for the delete button on the altered menu item form.

See also

ack_menu_form_menu_edit_item_alter()

menu_item_delete_submit()

1 string reference to 'ack_menu_item_delete_submit'
ack_menu_form_menu_edit_item_alter in ack_menu/ack_menu.module
Implements hook_form_FORM_ID_alter().

File

ack_menu/ack_menu.module, line 329
The ACK menu module.

Code

function ack_menu_item_delete_submit($form, &$form_state) {
  $destination = array();
  if (isset($_GET['destination'])) {
    $destination = drupal_get_destination();
    unset($_GET['destination']);
  }
  $form_state['redirect'] = array(
    'admin/structure/menu/item/' . $form_state['values']['mlid'] . '/delete',
    array(
      'query' => $destination,
    ),
  );
}