user_edit_delete_submit
modules/user/user.pages.inc, строка 299
- Версии
- 6
user_edit_delete_submit($form, &$form_state)
Submit function for the 'Delete'
button on the user edit form.
Код
<?php
function user_edit_delete_submit($form, &$form_state) {
$destination = '';
if (isset($_REQUEST['destination'])) {
$destination = drupal_get_destination();
unset($_REQUEST['destination']);
}
// Note: We redirect from user/uid/edit to user/uid/delete to make the tabs disappear.
$form_state['redirect'] = array("user/". $form_state['values']['_account']->uid ."/delete", $destination);
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии