You are here

function ascii_art_captcha_uninstall in CAPTCHA Pack 7

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

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

File

ascii_art_captcha/ascii_art_captcha.install, line 12
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');
}