function image_captcha_uninstall in CAPTCHA 6
Same name and namespace in other branches
- 5.3 image_captcha/image_captcha.install \image_captcha_uninstall()
- 6.2 image_captcha/image_captcha.install \image_captcha_uninstall()
- 7 image_captcha/image_captcha.install \image_captcha_uninstall()
On uninstall: remove module variables and clear variable cache
File
- image_captcha/
image_captcha.install, line 6
Code
function image_captcha_uninstall() {
db_query("DELETE FROM {variable} WHERE name LIKE 'image_captcha_%'");
cache_clear_all('variables', 'cache');
}