You are here

function captcha_uninstall in CAPTCHA 7

Same name and namespace in other branches
  1. 5.3 captcha.install \captcha_uninstall()
  2. 6.2 captcha.install \captcha_uninstall()
  3. 6 captcha.install \captcha_uninstall()

Implements of hook_uninstall().

File

./captcha.install, line 165
Install, update and uninstall functions for the CAPTCHA module.

Code

function captcha_uninstall() {
  drupal_uninstall_schema('captcha');
  db_query("DELETE FROM {variable} WHERE name LIKE 'captcha_%'");
  cache_clear_all('variables', 'cache');
}