You are here

function lost_character_captcha_uninstall in CAPTCHA Pack 5

Same name and namespace in other branches
  1. 8 text_captcha/modules/lost_character_captcha/lost_character_captcha.install \lost_character_captcha_uninstall()
  2. 6 text_captcha/lost_character_captcha/lost_character_captcha.install \lost_character_captcha_uninstall()
  3. 7 text_captcha/lost_character_captcha/lost_character_captcha.install \lost_character_captcha_uninstall()

On uninstall: remove module variables and clear variable cache

File

text_captcha/lost_character_captcha/lost_character_captcha.install, line 6

Code

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