function sharethis_update_7002 in ShareThis 7.2
Removes variables sharethis_override_* & sharethis_service_option.
See also
https://www.drupal.org/node/2759221
File
- ./
sharethis.install, line 85 - This file holds the install information for the ShareThis Module.
Code
function sharethis_update_7002() {
db_delete('variable')
->condition('name', db_like('sharethis_override_') . '%', 'LIKE')
->execute();
$sharethis_service_option = variable_get("sharethis_service_option");
$sharethis_service_option = str_replace('amp;', '', $sharethis_service_option);
$sharethis_service_option = str_replace('"', '"', $sharethis_service_option);
variable_set("sharethis_service_option", $sharethis_service_option);
cache_clear_all('variables', 'cache');
}