You are here

function phrase_captcha_uninstall in CAPTCHA Pack 7

Same name and namespace in other branches
  1. 8 text_captcha/modules/phrase_captcha/phrase_captcha.install \phrase_captcha_uninstall()
  2. 5 text_captcha/phrase_captcha/phrase_captcha.install \phrase_captcha_uninstall()
  3. 6 text_captcha/phrase_captcha/phrase_captcha.install \phrase_captcha_uninstall()

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

File

text_captcha/phrase_captcha/phrase_captcha.install, line 12
Install, update and uninstall functions for the PHRASE CAPTCHA module.

Code

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