You are here

function pathauto_uninstall in Pathauto 5

Same name and namespace in other branches
  1. 5.2 pathauto.install \pathauto_uninstall()
  2. 6.2 pathauto.install \pathauto_uninstall()
  3. 6 pathauto.install \pathauto_uninstall()
  4. 7 pathauto.install \pathauto_uninstall()

Implementation of hook_uninstall().

File

./pathauto.install, line 11
Provides install, updated, and uninstall functions for Pathauto.

Code

function pathauto_uninstall() {

  // Delete all the pathauto variables and then clear the variable cache.
  db_query("DELETE FROM {variable} WHERE name LIKE 'pathauto_%'");
  cache_clear_all('variables', 'cache');
}