Closed (fixed)
Project:
CAPTCHA
Version:
7.x-1.0-beta2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Feb 2013 at 16:20 UTC
Updated:
25 Feb 2013 at 06:10 UTC
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 commentedcommitted
http://drupalcode.org/project/captcha.git/commit/e1edf89
Comment #2
mfruzan commentedExcellent, this worked for me