You are here

function image_captcha_uninstall in CAPTCHA 6

Same name and namespace in other branches
  1. 5.3 image_captcha/image_captcha.install \image_captcha_uninstall()
  2. 6.2 image_captcha/image_captcha.install \image_captcha_uninstall()
  3. 7 image_captcha/image_captcha.install \image_captcha_uninstall()

On uninstall: remove module variables and clear variable cache

File

image_captcha/image_captcha.install, line 6

Code

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