You are here

function googleanalytics_update_6201 in Google Analytics 7

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

Update list of default file extensions.

File

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

Code

function googleanalytics_update_6201() {
  if (variable_get('googleanalytics_trackfiles_extensions', '') == '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') {
    variable_set('googleanalytics_trackfiles_extensions', '7z|aac|arc|arj|asf|asx|avi|bin|csv|doc|exe|flv|gif|gz|gzip|hqx|jar|jpe?g|js|mp(2|3|4|e?g)|mov(ie)?|msi|msp|pdf|phps|png|ppt|qtm?|ra(m|r)?|sea|sit|tar|tgz|torrent|txt|wav|wma|wmv|wpd|xls|xml|z|zip');
  }
  return t('The default extensions for download tracking have been updated.');
}