protected function Botcha::formIdValidate in BOTCHA Spam Prevention 6.3
File
- controller/
application/ botcha.application.controller.inc, line 342 - Contains Botcha class.
Class
- Botcha
- Just a middleman for achieving purposes such as:
Code
protected function formIdValidate($element, &$form_state) {
$value = $element['#value'];
// @todo ?Is it correct way to check if the form is protected?
if ($this
->formExists($value)) {
form_set_error('botcha_form_id', t('Form %form_id is already protected by BOTCHA', array(
'%form_id' => $value,
)));
}
}