function parser_simplepie_uninstall in FeedAPI 5
Same name and namespace in other branches
- 6 parser_simplepie/parser_simplepie.install \parser_simplepie_uninstall()
Implementation of hook_uninstall().
File
- parser_simplepie/
parser_simplepie.install, line 27
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');
}