function ws_linkedin_share_button_data in Service links 6.2
Same name and namespace in other branches
- 7.2 services/widget_services.module \ws_linkedin_share_button_data()
Callback function for Linkedin Share Button.
1 string reference to 'ws_linkedin_share_button_data'
- widget_services_service_links in services/
widget_services.module - Implementation of hook_service_links().
File
- services/
widget_services.module, line 185 - Extends Service Links with dynamic buttons.
Code
function ws_linkedin_share_button_data(&$service, $subst) {
static $lsb_settings;
if (!isset($lsb_settings)) {
if (!module_exists('jquery_update')) {
drupal_set_message(t('Linkedin Share Button requires <a href="@url">Jquery Update 2.x</a> to work correctly.', array(
'@url' => 'http://drupal.org/project/jquery_update',
)), 'warning', FALSE);
}
$lsb_settings = array(
'countmode' => check_plain(variable_get('service_links_lsb_countmode', 'right')),
);
drupal_add_js(array(
'ws_lsb' => $lsb_settings,
), 'setting');
}
}