You are here

function foo_captcha_uninstall in CAPTCHA Pack 7

Same name and namespace in other branches
  1. 8 foo_captcha/foo_captcha.install \foo_captcha_uninstall()
  2. 5 foo_captcha/foo_captcha.install \foo_captcha_uninstall()
  3. 6 foo_captcha/foo_captcha.install \foo_captcha_uninstall()

Implements hook_uninstall(). On uninstall: remove module variables and clear variables cache

File

foo_captcha/foo_captcha.install, line 12
Install, update and uninstall functions for the FOO CAPTCHA module.

Code

function foo_captcha_uninstall() {
  db_query("DELETE FROM {variable} WHERE name LIKE 'foo_captcha_%'");
  cache_clear_all('variables', 'cache');
}