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

soxofaan’s picture

Assigned: Unassigned » soxofaan
Priority: Normal » Minor
Status: Active » Fixed

fixed 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...

esllou’s picture

thanks. Worked fine. Just out of interest, where was it getting size="60" from? Is that some sort of default form value that Drupal uses?

soxofaan’s picture

indeed, 60 is the default size for drupal text fields:
http://api.drupal.org/api/function/system_elements/5

Anonymous’s picture

Status: Fixed » Closed (fixed)

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