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

soxofaan’s picture

Status: Needs review » Fixed
mfruzan’s picture

Excellent, this worked for me

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.