function googleanalytics_update_6000 in Google Analytics 5
Same name and namespace in other branches
- 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()
- 7 googleanalytics.install \googleanalytics_update_6000()
Upgrade old extension variable to new and use old name as enabled/disabled flag.
File
- ./
googleanalytics.install, line 74 - Installation file for Google Analytics module.
Code
function googleanalytics_update_6000() {
$ret = array();
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);
$ret[] = array(
'success' => TRUE,
'query' => 'Updated download tracking settings.',
);
return $ret;
}