You are here

function sharethis_update_7003 in ShareThis 7.2

Update the sharethis_location variable to an array.

See also

https://www.drupal.org/node/2846151

File

./sharethis.install, line 98
This file holds the install information for the ShareThis Module.

Code

function sharethis_update_7003() {
  $location_places = variable_get('sharethis_location', array(
    'content' => 'content',
  ));
  if (!is_array($location_places)) {
    $location_places = array(
      'content' => $location_places,
    );
    variable_set('sharethis_location', $location_places);
  }
}