You are here

protected function Botcha::recipebookIdValidate in BOTCHA Spam Prevention 6.3

File

controller/application/botcha.application.controller.inc, line 355
Contains Botcha class.

Class

Botcha
Just a middleman for achieving purposes such as:

Code

protected function recipebookIdValidate($element, &$form_state) {
  $value = $element['#value'];
  if ($this
    ->recipebookExists($value)) {
    form_set_error('id', t('Recipe book %rbid already exists', array(
      '%rbid' => $value,
    )));
  }
}