You are here

function gotwo_reset_form_submit in Go - url redirects 7

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

Form submit handler for click counter item reset.

File

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

Code

function gotwo_reset_form_submit($form, &$form_state) {
  db_update('gotwo')
    ->fields(array(
    'cnt' => 0,
  ))
    ->condition('gid', $form_state['values']['gid'])
    ->execute();
  $form_state['redirect'] = 'admin/structure/gotwo';
}