function googleanalytics_update_6000 in Google Analytics 7
Same name and namespace in other branches
- 5 googleanalytics.install \googleanalytics_update_6000()
- 6.4 googleanalytics.install \googleanalytics_update_6000()
- 6 googleanalytics.install \googleanalytics_update_6000()
- 6.2 googleanalytics.install \googleanalytics_update_6000()
- 6.3 googleanalytics.install \googleanalytics_update_6000()
- 7.2 googleanalytics.install \googleanalytics_update_6000()
Upgrade old extension variable to new and use old name as enabled/disabled flag.
File
- ./
googleanalytics.install, line 93 - 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.');
}