You are here

function pathfilter_uninstall in Path Filter 5

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