function _botcha_clear_form_cache in BOTCHA Spam Prevention 7
Same name and namespace in other branches
- 6 botcha.botcha.inc \_botcha_clear_form_cache()
1 call to _botcha_clear_form_cache()
- __botcha_form_validate in ./
botcha.botcha.inc - Custom form validation.
File
- ./
botcha.botcha.inc, line 692 - Implementation of botcha form logic.
Code
function _botcha_clear_form_cache($form_build_id) {
$expire = 0;
// expire immediately
$data = NULL;
cache_set('botcha_' . $form_build_id, $data, 'cache_form', REQUEST_TIME + $expire);
}