function path_admin_form_delete_submit
path_admin_form_delete_submit($form, &$form_state)
Form submission handler for the 'Delete' button on path_admin_form().
See also
File
- modules/path/path.admin.inc, line 177
- Administrative page callbacks for the path module.
Code
function path_admin_form_delete_submit($form, &$form_state) { $destination = array(); if (isset($_GET['destination'])) { $destination = drupal_get_destination(); unset($_GET['destination']); } $form_state['redirect'] = array('admin/config/search/path/delete/' . $form_state['values']['pid'], array('query' => $destination)); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!path!path.admin.inc/function/path_admin_form_delete_submit/7.x