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.
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 CreditAttribution: 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 CreditAttribution: 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