function botcha_uninstall in BOTCHA Spam Prevention 7.4
Same name and namespace in other branches
- 6.4 botcha.install \botcha_uninstall()
- 6 botcha.install \botcha_uninstall()
- 6.2 botcha.install \botcha_uninstall()
- 6.3 botcha.install \botcha_uninstall()
- 7 botcha.install \botcha_uninstall()
- 7.2 botcha.install \botcha_uninstall()
- 7.3 botcha.install \botcha_uninstall()
File
- ./
botcha.install, line 11 - Install, update and uninstall functions for the BOTCHA module.
Code
function botcha_uninstall() {
$filename = drupal_get_path('module', 'botcha_base') . "/botcha_base.module";
drupal_uninstall_modules(array(
'botcha_base',
));
// Unfortunately, we must explicitly delete botcha_base from system table to
// let re-installation.
db_delete('system')
->condition('filename', $filename)
->execute();
}