You are here

function piwik_disable in Piwik Web Analytics 5

Same name and namespace in other branches
  1. 6.2 piwik.install \piwik_disable()
  2. 6 piwik.install \piwik_disable()
  3. 7.2 piwik.install \piwik_disable()
  4. 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');
}