You are here

function ascii_art_captcha_uninstall in CAPTCHA Pack 5

Same name and namespace in other branches
  1. 6 ascii_art_captcha/ascii_art_captcha.install \ascii_art_captcha_uninstall()
  2. 7 ascii_art_captcha/ascii_art_captcha.install \ascii_art_captcha_uninstall()

On uninstall: remove module variables and clear variable cache

File

ascii_art_captcha/ascii_art_captcha.install, line 6

Code

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