You are here

function math_captcha_uninstall in CAPTCHA Pack 7

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

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

File

math_captcha/math_captcha.install, line 12
Install, update and uninstall functions for the MATH CAPTCHA module.

Code

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