function path_admin_form_delete_submit in Drupal 7
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 modules/
path/ path.admin.inc - Form constructor for the path administration form.
File
- modules/
path/ path.admin.inc, line 181 - 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,
),
);
}