function ws_linkedin_share_button_data in Service links 7.2
Same name and namespace in other branches
- 6.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 - Implements hook_service_links().
File
- services/
widget_services.module, line 170 - Extends Service Links with dynamic buttons.
Code
function ws_linkedin_share_button_data(&$service, $subst) {
static $lsb_settings;
if (!isset($lsb_settings)) {
$lsb_settings = array(
'countmode' => check_plain(variable_get('service_links_lsb_countmode', 'right')),
);
drupal_add_js(array(
'ws_lsb' => $lsb_settings,
), 'setting');
}
}