1 redirect.admin.inc redirect_delete_form_submit($form, &$form_state)

Form submit handler; delete an URL redirect after confirmation.

See also

redirect_delete_form()

File

core/modules/redirect/redirect.admin.inc, line 654
Admin page callbacks for the Redirect module.

Code

function redirect_delete_form_submit($form, &$form_state) {
  redirect_delete($form_state['values']['rid']);
  backdrop_set_message(t('The redirect has been deleted.'));
  $form_state['redirect'] = 'admin/config/urls/redirect';
}