You are here

function _botcha_clear_form_cache in BOTCHA Spam Prevention 6

Same name and namespace in other branches
  1. 7 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 677
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', time() + $expire);
}