Easily add share buttons to your nodes!
Centered in a single place, you don't need to worry in including external javascript libraries, and enabling several social modules.
Despite a bunch of other social modules, this module fits exactly if you want simple share buttons without worrying about messy configurations.
Easy Social is available both as blocks, attached to nodes, comments and also as a Views field.
The following widgets are included by default:
- Google+
Extend!
Modules can also implement hook_easy_social_widget() to define new widget types:
Example
function mymodule_easy_social_widget() {
return array(
'my_custom_share_button' => array(
'name' => 'My Custom Share Button', // apears on admin pages only
'markup' => '_mymodule_custom_share_button_markup', // callback function that returns widget markup
'scripts' => array(
array(
'path' => 'http://mycustomshare.com/widget.js', // javascript include,
'type' => 'external', // 'external', 'module' or 'inline', defaults to 'external'
),
),
'styles' => array(
array(
'path' => drupal_get_path('module', 'easy_social') . '/css/easy_social_twitter.css', // css include - specify full path
'type' => 'external', // 'external', 'module' or 'inline', defaults to 'external'
),
),
),
);
}
For a full description of the API with working examples, check out the documentation.
Drupal 7 Version
Easy Social for Drupal 7 depends on the Variable module. We declare our variables.
Drupal 6 Version
The Drupal 6 version is being supported exclusively for bugfixes but no new features will be included. All further improvements and enhancements will focus exclusively on the Drupal 7 version.
Maintainers
The maintainers provides consulting services and paid development, e.g. for implementing a specific feature. Help improving the module and get in contact!
Project information
- Module categories: Integrations, Developer Tools
- 1,792 sites report using this module
- Created by lnunesbr on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
Development version: 8.x-3.x-dev updated 7 Nov 2023 at 15:32 UTC
Development version: 7.x-2.x-dev updated 7 Jun 2017 at 17:04 UTC