function piwik_update_6003 in Piwik Web Analytics 5
Same name and namespace in other branches
- 6.2 piwik.install \piwik_update_6003()
- 6 piwik.install \piwik_update_6003()
- 7.2 piwik.install \piwik_update_6003()
- 7 piwik.install \piwik_update_6003()
Update list of default extensions
File
- ./
piwik.install, line 121 - Installation file for Piwik - Web analytics module.
Code
function piwik_update_6003() {
$ret = array();
if (variable_get('piwik_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('piwik_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 to piwik defaults.',
);
return $ret;
}