Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Within #743056: Document how to add a CAPTCHA programmatically code is given to provide the CAPTCHA within custom user/register template. How to accomplish this using reCAPTCHA?
Comments
Comment #1
Liam MorlandFollow those instructions with this:
'#captcha_type' => 'reCAPTCHA'
Comment #2
designate CreditAttribution: designate commentedThanks Liam, was struggling with '#captcha_type' => 'captcha/Image', and replace Image with reCAPTCHA which didn't workout. Marking status closed.
Comment #3
Todd Zebert CreditAttribution: Todd Zebert at Miles commentedFor D7, Captcha 7.x-1.x and reCAPTCHA 7.x-2.x the correct captcha type is 'recaptcha/reCAPTCHA'.
Comment #4
Liam Morland