You are here

function image_captcha_uninstall in CAPTCHA 7

Same name and namespace in other branches
  1. 5.3 image_captcha/image_captcha.install \image_captcha_uninstall()
  2. 6.2 image_captcha/image_captcha.install \image_captcha_uninstall()
  3. 6 image_captcha/image_captcha.install \image_captcha_uninstall()

On uninstall: remove module variables and clear variable cache.

File

image_captcha/image_captcha.install, line 35
Installation/uninstallation related functions for the image_captcha module.

Code

function image_captcha_uninstall() {
  db_delete('variable')
    ->condition('name', db_like('image_captcha_') . '%', 'LIKE')
    ->execute();
  cache_clear_all('variables', 'cache');
}