function pathfilter_uninstall in Path Filter 6
Same name and namespace in other branches
- 5.2 pathfilter.install \pathfilter_uninstall()
- 5 pathfilter.install \pathfilter_uninstall()
- 6.2 pathfilter.install \pathfilter_uninstall()
- 7 pathfilter.install \pathfilter_uninstall()
Implementation of hook_uninstall()
File
- ./
pathfilter.install, line 14 - Provides install and uninstall functions for pathfilter.
Code
function pathfilter_uninstall() {
// Delete all pathfilter variables
db_query("DELETE FROM {variable} WHERE name like 'pathfilter_%%'");
// Disable pathfilter from all formats
db_query("DELETE FROM {filters} WHERE module = '%s'", 'pathfilter');
cache_clear_all('variables', 'cache');
watchdog('pathfilter', 'Path filter module removed');
}