I've got a drupal situation where I want to add reCaptcha to a custom form (built in an add-on module). You can see from the captcha admin page that there is a list of forms that I can dynamically add captcha to... but my problem is that the form I created in the add-on does not appear in this list.

I'm sure I'm missing something (perhaps in the myform_block_info function?)

Does anyone know what hook I'm looking for? Have a working example?

enter image description here

1 Answer 1


This was embarrassingly easy. See that box at the bottom of the table? Put your form ID in there. "myform_form"

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.