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

Form builder to delete an URL redirect.

Parameters

Redirect $redirect: The redirect object to be deleted.

See also

redirect_delete_form()

confirm_form()

Related topics

File

core/modules/redirect/redirect.admin.inc, line 627
Administrative page callbacks for the Redirect module.

Code

function redirect_delete_form($form, &$form_state, Redirect $redirect) {
  $form['rid'] = array(
    '#type' => 'value',
    '#value' => $redirect->rid,
  );

  return confirm_form(
  $form, 
  t('Are you sure you want to delete the URL redirect from %source to %redirect?', array('%source' => $redirect->source, '%redirect' => $redirect->redirect)), 
  'admin/config/urls/redirect'
  );
}