function _botcha_available_cookbooks in BOTCHA Spam Prevention 7
Same name and namespace in other branches
- 6 botcha.pages.inc \_botcha_available_cookbooks()
Return an array with the available BOTCHA recipes, for use as options array for a select form elements.
Parameters
$add_special_options if true: also add a 'none' and 'default' option:
Return value
an associative array mapping string value to the name of the BOTCHA cookbook.
2 calls to _botcha_available_cookbooks()
- botcha_point_admin_form in ./
botcha.pages.inc - Form for adding BOTCHA point.
- _botcha_admin_settings in ./
botcha.pages.inc - Module settings form.
File
- ./
botcha.pages.inc, line 16 - Implementation of botcha administration forms.
Code
function _botcha_available_cookbooks() {
$botcha_types = array(
'none' => '[' . t('none') . ']',
'default' => '[' . t('default') . ']',
);
return $botcha_types;
}