function gotwo_reset_form_submit in Go - url redirects 6
Same name and namespace in other branches
- 7 gotwo.admin.inc \gotwo_reset_form_submit()
Form submit handler for click counter item reset.
File
- ./
gotwo.admin.inc, line 138 - Administrative page callbacks for the gotwo module.
Code
function gotwo_reset_form_submit($form, &$form_state) {
db_query("UPDATE {gotwo} SET cnt = %d WHERE gid = %d", 0, $form_state['values']['gid']);
$form_state['redirect'] = 'admin/build/gotwo';
}