function path_admin_form_delete_submit

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

See also

path_admin_form_validate()

path_admin_form_submit()

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

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,
        ),
    );
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.