Increase maxlength value of Link URL field
cubbtech - March 10, 2008 - 22:43
| Project: | Links Package |
| Version: | 5.x-1.8 |
| Component: | Code: links_weblink.module |
| Category: | feature request |
| Priority: | normal |
| Assigned: | syscrusher |
| Status: | needs review |
Jump to:
Description
I'm not really sure if this is the right way to go about this, but I'd like to increase the maxlength attribute of the Link URL field in the node creation form. The form is setting that value to 128, although there seems to be no limit on the url field in the links table of the database. So the attached patch inserts the following line into function links_weblink_form when it is creating the $form['links_weblink_url'] array:
'#maxlength' => 512,| Attachment | Size |
|---|---|
| links_weblink_maxlength.patch | 395 bytes |

#1
I have added this to the release to be posted tonight.
#2