How do I add reCaptcha to a form programmatically?
Use the following (after installing the reCaptcha module):

$form['captcha'] = array(
  '#type' =&gt; 'captcha',
  '#captcha_type' =&gt; 'recaptcha/reCAPTCHA',
);