public function AddThis::getServiceNamesAsCommaSeparatedString in AddThis 7.4
File
- classes/
AddThis.php, line 406 - An AddThis-class.
Class
- AddThis
- @file An AddThis-class.
Code
public function getServiceNamesAsCommaSeparatedString($services) {
$serviceNames = array_values($services);
$servicesAsCommaSeparatedString = '';
foreach ($serviceNames as $serviceName) {
if ($serviceName != '0') {
$servicesAsCommaSeparatedString .= $serviceName . ',';
}
}
return $servicesAsCommaSeparatedString;
}