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
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,

AttachmentSize
links_weblink_maxlength.patch395 bytes

#1

syscrusher - January 21, 2009 - 04:03

I have added this to the release to be posted tonight.

#2

syscrusher - January 21, 2009 - 04:04
Assigned to:Anonymous» syscrusher
 
 

Drupal is a registered trademark of Dries Buytaert.