Created
December 19, 2022 15:54
-
-
Save jcicero518/2d5b6a4afd9fc2bfbeef5aaae6d6b9f4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function myModule_element_info_alter(&$type) { | |
if (isset($type['captcha'])) { | |
$type['captcha']['#after_build'][] = 'myModule_after_build_process'; | |
} | |
} | |
function myModule_after_build_process($element, $form_state) { | |
$element['captcha_widgets']['recaptcha_widget']['#suffix'] = '<div><label class="hide" for="g-recaptcha-response">Recaptcha response</label></div>'; | |
return $element; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment