Social Links API
Categories
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
Downloads
Component created
Component changed
Component body
Light-weight social share links to attach to your entity pages (D7: node and profile2 entities are supported for now).
Clicking the link opens a popup to share your content's page, or a custom callback can used to e.g.
format the link to open in your mail application with a title and subject preset.
Provides default support for:
- googleplus
Drupal 8!
We're currently working on a stable D8 version of social share. Development release up for Drupal 8 now!
Configuration
To add social links to e.g. a node page, go to Manage Display and drag the field "Social links" to the area you want
it to display.
If fonticon is enabled, social links are by default displayed with icons, using
the font icon key social-links-<providername>. Configuring icons is as simple as adding
fonticon[social_link_twitter] = '
to your theme .info file
API
Different providers can be created by implementing hook_social_links_alter. Take a look at social_links.api.php on how to define new social links or change existing ones.
