function sharethis_to_boolean in ShareThis 7.2
Converts given value to boolean.
1 call to sharethis_to_boolean()
- sharethis_get_light_options in ./
sharethis.module - Function is creating options to be passed to stLight.
File
- ./
sharethis.module, line 30 - A module that adds one of the ShareThis widget to your website.
Code
function sharethis_to_boolean($val) {
if (strtolower(trim($val)) === 'false') {
return FALSE;
}
else {
return (bool) $val;
}
}