You are here

function googleanalytics_update_6200 in Google Analytics 7.2

Same name and namespace in other branches
  1. 6.4 googleanalytics.install \googleanalytics_update_6200()
  2. 6.2 googleanalytics.install \googleanalytics_update_6200()
  3. 6.3 googleanalytics.install \googleanalytics_update_6200()
  4. 7 googleanalytics.install \googleanalytics_update_6200()

Remove outdated legacy support variables and files.

File

./googleanalytics.install, line 254
Installation file for Google Analytics module.

Code

function googleanalytics_update_6200() {
  $path = 'public://googleanalytics';
  if (file_exists($path)) {
    file_unmanaged_delete($path . '/urchin.js');
  }
  variable_del('googleanalytics_legacy_version');
  return t('Removed outdated legacy tracker stuff.');
}