You are here

function ascii_art_captcha_uninstall in CAPTCHA Pack 6

Same name and namespace in other branches
  1. 5 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 variables cache

File

ascii_art_captcha/ascii_art_captcha.install, line 11
Install, update and uninstall functions for the ASCII ART CAPTCHA module.

Code

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