botcha.install in BOTCHA Spam Prevention 7.4
Same filename and directory in other branches
Install, update and uninstall functions for the BOTCHA module.
File
botcha.installView source
<?php
/**
* @file
* Install, update and uninstall functions for the BOTCHA module.
*/
function botcha_install() {
module_enable(array(
'botcha_base',
), FALSE);
}
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();
}
Functions
Name | Description |
---|---|
botcha_install | @file Install, update and uninstall functions for the BOTCHA module. |
botcha_uninstall |