function googleanalytics_disable in Google Analytics 5
Same name and namespace in other branches
- 6.4 googleanalytics.install \googleanalytics_disable()
- 6 googleanalytics.install \googleanalytics_disable()
- 6.2 googleanalytics.install \googleanalytics_disable()
- 6.3 googleanalytics.install \googleanalytics_disable()
- 7.2 googleanalytics.install \googleanalytics_disable()
- 7 googleanalytics.install \googleanalytics_disable()
Remove cache directory if module is disabled (or uninstalled).
File
- ./
googleanalytics.install, line 46 - Installation file for Google Analytics module.
Code
function googleanalytics_disable() {
$path = file_directory_path() . '/googleanalytics';
if (file_exists($path)) {
file_delete($path . '/urchin.js');
file_delete($path . '/ga.js');
rmdir($path);
}
}