1 path.admin.inc path_admin_form_delete_submit($form, &$form_state)

Form submission handler for the 'Delete' button on path_admin_form().

See also

path_admin_form_validate()

path_admin_form_submit()

File

core/modules/path/path.admin.inc, line 202
Admin page callbacks for the Path module.

Code

function path_admin_form_delete_submit($form, &$form_state) {
  $destination = array();
  if (isset($_GET['destination'])) {
    $destination = backdrop_get_destination();
    unset($_GET['destination']);
  }
  $form_state['redirect'] = array('admin/config/urls/path/delete/' . $form_state['values']['pid'], array('query' => $destination));
}