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.
Hello, I am the developer of Arrange Fields. With this version of CAPTCHA, the captcha is no longer able to be moved around by my module.
This is because on line ~286 of captcha.module, the #pre_render field of the element gets wiped out and replaced like so:
$element['#pre_render'] = array('captcha_pre_render_process');
This is a problem, because if any other modules (like mine) need to also add pre_render processes, they cannot.
I made this change, and it fixed the issue:
if (!isset($element['#pre_render'])) {
$element['#pre_render'] = array();
}
$element['#pre_render'][] = 'captcha_pre_render_process';
I was hoping you could include this small change in the next version (or dev version) of CAPTCHA module.
Thanks so much!
Richard
Comments
Comment #1
soxofaan CreditAttribution: soxofaan commentedcommitted
http://drupalcode.org/project/captcha.git/commit/e1edf89
Comment #2
mfruzan CreditAttribution: mfruzan commentedExcellent, this worked for me