function piwik_disable in Piwik Web Analytics 5
Same name and namespace in other branches
- 6.2 piwik.install \piwik_disable()
- 6 piwik.install \piwik_disable()
- 7.2 piwik.install \piwik_disable()
- 7 piwik.install \piwik_disable()
Remove cache directory if module is disabled (or uninstalled).
File
- ./
piwik.install, line 65 - Installation file for Piwik - Web analytics module.
Code
function piwik_disable() {
file_delete(file_directory_path() . '/piwik/piwik.js');
rmdir(file_directory_path() . '/piwik');
}