You are here

function googleanalytics_update_6000 in Google Analytics 7.2

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

Upgrade old extension variable to new and use old name as enabled/disabled flag.

File

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

Code

function googleanalytics_update_6000() {
  variable_set('googleanalytics_trackfiles_extensions', variable_get('googleanalytics_trackfiles', '7z|aac|avi|csv|doc|exe|flv|gif|gz|jpe?g|js|mp(3|4|e?g)|mov|pdf|phps|png|ppt|rar|sit|tar|torrent|txt|wma|wmv|xls|xml|zip'));
  $trackfiles = variable_get('googleanalytics_trackfiles', '7z|aac|avi|csv|doc|exe|flv|gif|gz|jpe?g|js|mp(3|4|e?g)|mov|pdf|phps|png|ppt|rar|sit|tar|torrent|txt|wma|wmv|xls|xml|zip') ? TRUE : FALSE;
  variable_set('googleanalytics_trackfiles', $trackfiles);
  return t('Updated download tracking file extensions.');
}