You are here

function googleanalytics_update_6200 in Google Analytics 6.3

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

Remove outdated legacy support variables and files.

File

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

Code

function googleanalytics_update_6200() {
  $ret = array();
  $path = file_directory_path() . '/googleanalytics';
  if (file_exists($path)) {
    file_delete($path . '/urchin.js');
  }
  variable_del('googleanalytics_legacy_version');
  $ret[] = array(
    'success' => TRUE,
    'query' => 'Removed legacy support.',
  );
  return $ret;
}