enabling Add CAPTCHA administration links to forms, adds captcha to all forms even custom search blocks for logged in user.
I understand that this is by design, but without the fieldset classed out, themers cannot hide this when it appears in areas of a theme it shouldn't. For example, any custom search block added to the header area of a theme, will automatically get this captcha option.. and to disable it, a themer must hide all fieldsets in that region.. if there were a class added to the fieldset, we could easily just hide that captcha fieldsets in whatever areas are undesirable.
I have attached an image which should illustrate the problem
Comment | File | Size | Author |
---|---|---|---|
#3 | captcha-admin-links.png | 74.35 KB | KrisBulman |
#2 | 1142606_captchaadminlinksclass.patch | 557 bytes | soxofaan |
captchaclass.jpg | 120.53 KB | KrisBulman |
Comments
Comment #1
KrisBulman CreditAttribution: KrisBulman commentedComment #2
soxofaan CreditAttribution: soxofaan commentedI haven't got the time to try it out, but the following should do the trick I suppose
Comment #3
KrisBulman CreditAttribution: KrisBulman commentedcaptcha-admin-links class added to fieldset properly
Comment #4
soxofaan CreditAttribution: soxofaan commentedcommitted (on 6.x-2.x and 7.x-1.x): http://drupalcode.org/project/captcha.git/commit/616f033, http://drupalcode.org/project/captcha.git/commit/a46272a
thanks for testing