function botcha_system_info_alter in BOTCHA Spam Prevention 7.4
Same name and namespace in other branches
- 6.4 botcha.module \botcha_system_info_alter()
File
- ./
botcha.module, line 13 - BOTCHA - Spam Prevention It modifies forms by adding various botcha's.
Code
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;
}
}