You are here

botcha.module in BOTCHA Spam Prevention 7.4

BOTCHA - Spam Prevention It modifies forms by adding various botcha's.

File

botcha.module
View source
<?php

/**
 * @file
 * BOTCHA - Spam Prevention
 * It modifies forms by adding various botcha's.
 */
function botcha_boot() {

  // It is necessary to be loaded during bootstrap.
}
function botcha_system_info_alter(&$info, $file, $type) {
  switch ($file->name) {
    case 'botcha_base':

      // Replace with appropriate version.
      $info['core'] = '7.x';
      break;
    case 'botcha':
      if (!in_array('botcha_base', $info['dependencies'])) {

        // Add a dependency after enabling.
        $info['dependencies'][] = 'botcha_base';
      }
      break;
  }
}

// END

Functions

Namesort descending Description
botcha_boot @file BOTCHA - Spam Prevention It modifies forms by adding various botcha's.
botcha_system_info_alter