You are here

function googleanalytics_update_6201 in Google Analytics 6.3

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

Update list of default file extensions.

File

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

Code

function googleanalytics_update_6201() {
  $ret = array();
  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');
  }
  $ret[] = array(
    'success' => TRUE,
    'query' => 'The default extensions for download tracking have been updated.',
  );
  return $ret;
}