botcha.module in BOTCHA Spam Prevention 7.4
Same filename and directory in other branches
BOTCHA - Spam Prevention It modifies forms by adding various botcha's.
File
botcha.moduleView 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;
  }
}
// ENDFunctions
| Name   | Description | 
|---|---|
| botcha_boot | @file BOTCHA - Spam Prevention It modifies forms by adding various botcha's. | 
| botcha_system_info_alter | 
