function math_captcha_uninstall in CAPTCHA Pack 5
Same name and namespace in other branches
- 8 math_captcha/math_captcha.install \math_captcha_uninstall()
- 6 math_captcha/math_captcha.install \math_captcha_uninstall()
- 7 math_captcha/math_captcha.install \math_captcha_uninstall()
On uninstall: remove module variables and clear variable cache
File
- math_captcha/
math_captcha.install, line 6
Code
function math_captcha_uninstall() {
db_query("DELETE FROM {variable} WHERE name LIKE 'math_captcha_%'");
cache_clear_all('variables', 'cache');
}