function botcha_uninstall in BOTCHA Spam Prevention 6
Same name and namespace in other branches
- 6.4 botcha.install \botcha_uninstall()
- 6.2 botcha.install \botcha_uninstall()
- 6.3 botcha.install \botcha_uninstall()
- 7.4 botcha.install \botcha_uninstall()
- 7 botcha.install \botcha_uninstall()
- 7.2 botcha.install \botcha_uninstall()
- 7.3 botcha.install \botcha_uninstall()
Implementation of hook_uninstall().
File
- ./
botcha.install, line 127
Code
function botcha_uninstall() {
drupal_uninstall_schema('botcha');
db_query("DELETE FROM {variable} WHERE name LIKE 'botcha_%'");
// foreach (_botcha_variables() as $var) { variable_del($var); }
$i18n_variables = variable_get('i18n_variables', '');
if (is_array($i18n_variables)) {
$i18n_variables = array_diff($i18n_variables, _botcha_variables());
variable_set('i18n_variables', $i18n_variables);
}
cache_clear_all('variables', 'cache');
}