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.
For our sites we use Email with Social share, but the network isn't able to be exported to features and doesn't provide an API. Attached is a patch which adds in the email 'network'.
Comment | File | Size | Author |
---|---|---|---|
#2 | share_via_email-2834699-2.patch | 707 bytes | DanielVeza |
Comments
Comment #2
DanielVezaComment #3
chrisolof CreditAttribution: chrisolof at Lima Solutions for CivicSolar, Inc. commentedSo I was going down this route myself until I spotted this in social_share.module's social_share_available_networks() function:
Which means, though not documented in an api.php file, it's actually possible to add networks in via a hook:
Heads-up that weight does not seem to be respected in 7.x-2.5. Could be fixed in the dev branch (I haven't checked).
Comment #4
chrisolof CreditAttribution: chrisolof at Lima Solutions for CivicSolar, Inc. commentedThe weight issue was not fixed in 7.x-2.x, so I've opened #2953444: Network weight not respected, and provided a patch.
Comment #5
DanielVezaNice catch mate!