1 user.pages.inc | user_edit_cancel_submit($form, &$form_state) |
Submit handler for user_edit_cancel().
File
- core/
modules/ user/ user.pages.inc, line 443 - User page callback file for the user module.
Code
function user_edit_cancel_submit($form, &$form_state) {
$destination = array();
if (isset($_GET['destination'])) {
$destination = backdrop_get_destination();
unset($_GET['destination']);
}
// Note: We redirect from user/uid/edit to user/uid/cancel to make the tabs disappear.
$form_state['redirect'] = array("user/" . $form['#user']->uid . "/cancel", array('query' => $destination));
}