Closed (fixed)
Project:
ShareThis
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
30 Mar 2013 at 03:52 UTC
Updated:
23 Apr 2016 at 11:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Gaofengzzz commentedQuick follow up on this task.
Please find attached to this comment a patch file against 7.x-2.x version, at 9fe4cde:
File named: sharethis-move-to-admin-inc-file.1956802.1.patch.
This patch has been tested and seems to work as expected.
For the 6.x-1.x branch and versions this change was already commited at 5c33ed4, refering to #432290: ShareThis jQuery Plugin.
For 7.x-2.x, I didn't do any other change but to declare the file callback for the form page with
'file' => 'sharethis.admin.inc',, and then simply copy/pasted all the code related with the form and other functions used to a new file called sharethis.admin.inc.This change doesn't add any new feature or function to the module, however, it improves its code organization, readability, maintainability as well as its memory footprint.
Please let me know if you would have any questions, objections, comments, suggestions, recommendations or concerns on the patch file or any aspects discussed in this ticket, I would be glad to provide more information, explain in more details or re-roll the patch if necessary.
I would greatly appreciate some help from module maintainers and if any of you could take a bit of time to look into any of the attached patch (7.x-2.x) to give me your feedback/opinion on this ticket.
Any questions, feedback, testing, changes, recommendations would be highly appreciated.
Thanks to all in advance.
Comment #2
Chaulky commentedTrailing white space should be cleaned up.
Pretty straightforward patch, looks good except the trailing white space. I agree that it will help organization.
Comment #3
Gaofengzzz commentedThank you,
Has removed these trailing white space and upload again
Comment #3.0
Gaofengzzz commentedpatch it later
Comment #4
purushotam.rai commentedPatch is outdated. Needs re-roll.
Comment #5
purushotam.rai commentedComment #7
purushotam.rai commentedThanks all for your efforts.
Comment #8
purushotam.rai commentedNotice: Undefined index: nodeType in sharethis_configuration_form() (line 50 of /Applications/MAMP/htdocs/drupal/sites/all/modules/contrib/sharethis/sharethis.admin.inc).
Patch seems to produce error produced. Have created new issue to solve this: #2703259: Notice: Undefined index: nodeType in sharethis_configuration_form() line 50