You are here

function gotwo_reset_form in Go - url redirects 7

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

Create confirmation form for click counter item reset.

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

File

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

Code

function gotwo_reset_form($form, &$form_state, $edit) {
  $form['gid'] = array(
    '#type' => 'value',
    '#value' => $edit->gid,
  );
  return confirm_form($form, t('Reset the counter for %label', array(
    '%label' => $edit->src,
  )), 'admin/structure/gotwo', '<p>' . t('Are you sure you want to reset the click counter for %label? This action cannot be undone.', array(
    '%label' => $edit->src,
  )) . '</p>', t('Reset'), t('Cancel'));
}