Install
Works with Drupal: 7.xUsing dev releases is not recommended, except for testing.
Using Composer to manage Drupal site dependencies
Downloads
Release notes
Implemented hook_easy_social_widget() to easily allow other modules to define their own widgets.
Example:
function mymodule_easy_social_widgets() {
return array(
'my_custom_share_button' => array(
'name' => 'My Custom Share Button', // apears on admin pages only
'markup' => '_my_custom_share_button_markup', // callback function that returns widget markup
'script' => 'http://mycustomshare.com/widget.js', // external javascript include
),
);
}
Items that need work:
- template
- allow widgets to define custom variables in admin settings pages
- make $type into a constant to avoid errors
- you tell me!