I maintain a small module on Drupal.org and I'm having a few problems fixing this issue:


Is this limit of 128 characters imposed by Drupal Core? Can I do anything in my module's code to work around this limit? Or is it best to suggest that users of my module use something like http://drupal.org/project/maxlength or http://drupal.org/project/skip_validation?

1 Answer 1


Maybe my brain isn't in gear, but in your code you have '#maxlength' => 128, everywhere... Changing that to 4096 worked here and allowed a really long message. Changing textfield to textarea and removing #size and #maxlength worked as well.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.