You are here

function addthis_update_6301 in AddThis 6.3

Convert obsolete "icon_32x32" variable to use "addthis_toolbox_classes". Move cache_js setting out of addthis_config. Also force a menu rebuild to expose new administration pages.

File

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

Code

function addthis_update_6301() {
  $ret = array();
  $config = variable_get('addthis_config', array(
    'ui_use_css' => TRUE,
    'data_use_cookies' => TRUE,
  ));
  if ($config['icon_32x32']) {
    variable_set('addthis_toolbox_classes', 'addthis_32x32_style');
  }
  if ($config['cache_js']) {
    variable_set('addthis_cache_js', 1);
  }
  menu_rebuild();
  return $ret;
}