I see nowhere in captcha.module or text_captcha.module where I can reduce the size of the input box for captcha. I am using text captcha and the longest word possible is about 7-8 letters only so size="60" is way too long.
When it appears in the block created by the Invite module, it destroys my layout completely. :-(
Comments
Comment #1
soxofaan commentedfixed by:
http://drupal.org/cvs?commit=103416
http://drupal.org/cvs?commit=103417
For your information, the trick is to add something like "'#size' => 15," to the form element definition,
see http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/captcha/tex...
Comment #2
esllou commentedthanks. Worked fine. Just out of interest, where was it getting size="60" from? Is that some sort of default form value that Drupal uses?
Comment #3
soxofaan commentedindeed, 60 is the default size for drupal text fields:
http://api.drupal.org/api/function/system_elements/5
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.