It seems the theming is not working.
reCAPTCHA module outputs
<!--//--><![CDATA[//><!--
var RecaptchaOptions = { "theme": "white", "lang": "en" };
//--><!]]>
When it should be
<!--//--><![CDATA[//><!--
var RecaptchaOptions = { theme : 'white', lang : 'en' };
//--><!]]>
Note the apostrophes.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | recaptcha-theme-790638-2.patch | 1.06 KB | schnitzel |
| #2 | recaptcha-theme-790638-1.patch | 1.08 KB | schnitzel |
Comments
Comment #1
amclin commentedThis is because drupal's built in drupal_to_js() function escapes all the variable names in an array. Doesn't seem to be a way to fix this except for bypassing the drupal_to_js() call in recaptcha.module in favor of a module-specific output.
Oh, and in addition, this needs to be inserted BEFORE the call to the recaptcha js in order for it to work.
Comment #2
schnitzel commentedI had the same problem in the 5.x-2.6 version and created this patch.
It's a bit hacky, but it works and maybe someone, would create a patch which adds this functionality in the recaptcha_get_html() function.
Comment #3
schnitzel commentedOh, patch was wrong, sorry.
here it is the correct version:
Comment #4
liam morlandVersions prior to Drupal 6 are no longer supported. If this issue still exists in a supported version, please re-open and provide details.