I've exported this module's variables to code, and one of my content type's requires a fairly lengthy confirmation message after creation. Now, when I go to the admin page and submit the Content Type edit page, I can't save the page, because I get the following error:
Create message cannot be longer than 128 characters but is currently 2813 characters long.
Since this module uses the variable table to store these values and there is no such limit on the length of the variable.value field in the database, there shouldn't be a 128 character limit imposed by the interface.
Comments
Comment #1
mikeskull commentedJust need to set max lengths to FALSE (or another higher number) and all is fine.
edit - no its not, get errors on validation when its over the 128 limit even when the limit is removed.....looking....
Comment #2
jwilson3Yeah, i thought the same thing about removing the max length Form API setting, but it didnt work, and then I couldn't figure out a solution. Interested to see what you find.
Comment #3
vaibhavjainWell, the reason its not working is because, defining a max length is mandatory for a form element textfield.
If we remove, it causes it to take default which is again 128.
You can try your luck with this module - http://drupal.org/project/maxlength - it allows you to set maximum length.
Comment #4
jwilson3Would changing the field to a texteara 1 row high work?
Comment #5
jim0203 commentedI've set the maxlength of all of the text fields defined in the module to 4096. This change will appear in the next dev snapshot and will be rolled in to the next official release.