function parser_simplepie_uninstall in FeedAPI 6
Same name and namespace in other branches
- 5 parser_simplepie/parser_simplepie.install \parser_simplepie_uninstall()
Implementation of hook_uninstall().
File
- parser_simplepie/
parser_simplepie.install, line 69 - Install file for Parser SimplePie module.
Code
function parser_simplepie_uninstall() {
// Empty cache directory
$cache_dir = variable_get('parser_simplepie_cache', FALSE);
if (is_dir($cache_dir)) {
$dp = opendir($cache_dir);
while (($file = readdir($dp)) !== FALSE) {
if (is_file($file)) {
unlink($cache_dir . '/' . $file);
}
}
closedir($dp);
rmdir($cache_dir);
}
variable_del('parser_simplepie_cache');
}