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.
A new service can be added, it's not google +1, it's the functionality to share a link
$links['googleplus_share'] = array(
'name' => 'Google Plus share',
'description' => t('Share on Google+'),
'link' => 'https://plus.google.com/share?url=',
);
You can get the icon from here https://developers.google.com/+/plugins/share/
Comment | File | Size | Author |
---|---|---|---|
#8 | 0001-Issue-1662684-by-chromix-Jody-Lynn-SebCorbin-rodrigo.patch | 2.88 KB | SebCorbin |
#5 | 1662684-5-google_plus.patch | 1.67 KB | SebCorbin |
#2 | service_links-1662684-2.patch | 805 bytes | Jody Lynn |
#1 | add_google_plus_share-1662684-1.patch | 611 bytes | chromix |
#1 | google_plus_share.png | 527 bytes | chromix |
Comments
Comment #1
chromix CreditAttribution: chromix commentedHere's a patch and the icon that should be copied into images/. It seems to be working great for me!
Comment #2
Jody LynnPatch was missing the actual URL. New patch.
Comment #3
rv0 CreditAttribution: rv0 commentedThanks, works fine for me.
Comment #4
Tor Arne Thune CreditAttribution: Tor Arne Thune commentedGoogle Plus is blatantly missing from the general services, so, yes please.
Comment #5
SebCorbin CreditAttribution: SebCorbin commentedHere's another patch, with a simpler id, and mentioning it in .info
Binary image can be found at https://www.gstatic.com/images/icons/gplus-16.png
Comment #6
PolI'm also willing to see this in.
Comment #7
TheCrow CreditAttribution: TheCrow commentedalso here: http://servicelinks.altervista.org/?q=service/google-plus-share
Comment #8
SebCorbin CreditAttribution: SebCorbin commentedHere's a try with the image encoded in base 64 with git format-patch
Comment #9
Simon Georges CreditAttribution: Simon Georges commentedLet's change the description to "Share on Google+", otherwise, patch applies cleanly. What do you think, TheCrow, good for commit?
Comment #10
Simon Georges CreditAttribution: Simon Georges commentedI committed a slightly modified version of the patch (essentially using "+" instead of plus to respect Google terminology). Thanks to every contributor of the patch.
Let's move this to 6.x-2.x for addition too.
Comment #11
timb CreditAttribution: timb commentedI would like to see this functionality in 6
Comment #12
jacob.embree CreditAttribution: jacob.embree at St. Louis Integration commentedGoogle+ API has been shut down.
https://developers.google.com/+/api-shutdown