Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I made a small patch to grow the to be shortened URL from default 128 to 255 characters to be more useful for me; maybe for others too?
diff -up /Users/holgi/Desktop/shurly/shurly.module /Users/holgi/Desktop/shurly_new/shurly.module
--- /Users/holgi/Desktop/shurly/shurly.module 2010-08-24 16:25:47.000000000 +0200
+++ /Users/holgi/Desktop/shurly_new/shurly.module 2010-08-24 20:28:00.000000000 +0200
@@ -178,6 +178,7 @@ function shurly_create_form($form_state)
$form['long_url'] = array(
'#title' => t('Enter a long URL to make short'),
'#type' => 'textfield',
+ '#maxlength' => 255,
'#default_value' => isset($form_state['storage']['shurly']['long_url']) ? $form_state['storage']['shurly']['long_url'] : ($_GET['url'] ? $_GET['url'] : 'http://'),
);
Comments
Comment #1
jjeff CreditAttribution: jjeff commentedJust committed this fix to the dev version.
Comment #2
jjeff CreditAttribution: jjeff commentedComment #3
jjeff CreditAttribution: jjeff commentedJust rolled 1.0-rc2 which contains this fix.