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

Form submit handler; insert or update an URL redirect.

See also

redirect_edit_form()

File

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

Code

function redirect_edit_form_submit($form, &$form_state) {
  $redirect = $form_state['redirect'];
  redirect_save($redirect);
  backdrop_set_message(t('The redirect has been saved.'));
  $form_state['redirect'] = 'admin/config/urls/redirect';
}