[eluser]pysco68[/eluser]
Me again ^^
the reCaptcha integration is nearly ok... I just got ONE big problem... for the validation of the reCAPTCHA field I need to use a callback function, ok so far...
The problem is that the callback is not launched... I mean, i've put debug messages on every end of your file, and the point is that every validation rule I may define for the field is executed, as long as it's a Native CI rule...
Here's the pieces of code:
Code:
function recaptcha($label='')
{
$info = array();
$info['for'] = 'recaptcha_response_field';
$info['name'] = 'recaptcha_response_field';
$info['type'] = 'recaptcha';
$info['label'] = $label;
$info['rules'] = 'required|callback__recaptcha_check|max_length[128]|xss_clean';
$this->add($info);
return $this;
}
(class: Form)
it's just the piece of code that adds the reCAPTCHA field (that's still working), the error messages ("Field is required"...) are working, now there's just that freakin' callback... 'hope there's just a mistake on my side...
Greetings