You are here

botcha.install in BOTCHA Spam Prevention 7.4

Install, update and uninstall functions for the BOTCHA module.

File

botcha.install
View 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

Namesort descending Description
botcha_install @file Install, update and uninstall functions for the BOTCHA module.
botcha_uninstall