API

Usage

Call the module : $captcha = $modules->get("MarkupGoogleRecaptcha");

Call $captcha->getScript(); somewhere to get the javascript used by reCAPTCHA

Render reCAPTCHA in a standard HTML <form></form> by calling $captcha->render()
or
Render reCAPTCHA in an InputfieldForm by passing as argument your form to the render function: $captcha->render($form)

Call verifyResponse() to get the result. It return TRUE if the challenge was successfull.