Closed (fixed)
Project:
ShareThis
Version:
7.x-2.4
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
19 Jun 2012 at 10:38 UTC
Updated:
30 Jul 2012 at 13:11 UTC
The service options field ( $form['options']['sharethis_service_option'] ) doesn't specify a #maxlength, and was limited to 128 characters in our system.
Adding #maxlength => 255 to the form field (sharethis.module around line 130) enables adding more services to the ShareThis widget.
Still, a textfield might be too small a field to store lots of sharing service options.
Comments
Comment #1
ShareThis Support commentedHi mropanen,
You can update the drupal settings in file /modules/system/system.module
LINE NUMBER ~ 359
$types['textfield'] = array(
'#input' => TRUE,
'#size' => 60,
'#maxlength' => 1024,
'#autocomplete_path' => FALSE,
'#process' => array('ajax_process_form'),
'#theme' => 'textfield',
'#theme_wrappers' => array('form_element'),
);
This will allow you to store more Sharing services.
Comment #2
smitty commentedYou really want to patch the core for this?
I think this must be handled by the module!
Comment #3
robloachThanks http://drupalcode.org/project/sharethis.git/commit/d5986aa