You are here

function gotwo_delete_form in Go - url redirects 7

Same name and namespace in other branches
  1. 6 gotwo.admin.inc \gotwo_delete_form()

Build delete form.

1 string reference to 'gotwo_delete_form'
gotwo_menu in ./gotwo.module
Implements hook_menu().

File

./gotwo.admin.inc, line 172
Administrative page callbacks for the gotwo module.

Code

function gotwo_delete_form($form, &$form_state, $edit) {
  $form['gid'] = array(
    '#type' => 'value',
    '#value' => $edit->gid,
  );
  return confirm_form($form, t('Delete go redirect %label', array(
    '%label' => $edit->src,
  )), 'admin/structure/gotwo', '<p>' . t('Are you sure you want to delete the go redirect %label? This action cannot be undone. The link will become broken, a new one might be automatically created when a node linking to it is edited.', array(
    '%label' => $edit->src,
  )) . '</p>', t('Delete'), t('Cancel'));
}