function path_admin_form_delete_submit
7.x path.admin.inc | path_admin_form_delete_submit($form, &$form_state) |
Form submission handler for the 'Delete' button on path_admin_form().
See also
1 string reference to 'path_admin_form_delete_submit'
- path_admin_form in drupal-7.x/
modules/ path/ path.admin.inc - Form constructor for the path administration form.
File
- drupal-7.x/
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));
}