Top menu

Alter captcha field with the hook_element_info_alter()

If you want to change the field properties of  the Captcha module or the Image CAPTCHA module you will see that this is not possible with hook_form_alter () because through this function we can not access to the fields of the captcha, the picture below shows an example of what you get when we display the variable $form in this function:


So the solution I found is to use hook_element_info_alter () and here is an example that shows how to use :


No comments yet.

Leave a Reply