You are here

function addthis_update_6302 in AddThis 6.3

Convert "username" values to "pubid" values.

File

./addthis.install, line 136
AddThis module installation/update hooks.

Code

function addthis_update_6302() {
  $ret = array();
  $config = variable_get('addthis_config', array(
    'ui_use_css' => TRUE,
    'data_use_cookies' => TRUE,
  ));
  if ($config['username']) {
    $config['pubid'] = $config['username'];
    unset($config['username']);
    variable_set('addthis_config', $config);
  }
  return $ret;
}