function botcha_system_info_alter in BOTCHA Spam Prevention 6.4
Same name and namespace in other branches
- 7.4 botcha.module \botcha_system_info_alter()
File
- ./
botcha.module, line 35 - BOTCHA - Spam Prevention It modifies forms by adding various botcha's.
Code
function botcha_system_info_alter(&$info, $file) {
switch ($file->name) {
case 'botcha_base':
// Replace with appropriate version.
$info['core'] = '6.x';
// Add additional dependencies.
$additional_dependencies = array(
'autoload',
'dbtng',
);
foreach ($additional_dependencies as $additional_dependency) {
if (!in_array($additional_dependency, $info['dependencies'])) {
$info['dependencies'][] = $additional_dependency;
}
}
break;
case 'botcha':
if (!in_array('botcha_base', $info['dependencies'])) {
// Add a dependency after enabling.
$info['dependencies'][] = 'botcha_base';
}
break;
}
}