function _botcha_default_form_ids in BOTCHA Spam Prevention 7
Same name and namespace in other branches
- 6 botcha.install \_botcha_default_form_ids()
- 6.2 botcha.install \_botcha_default_form_ids()
- 6.3 botcha.install \_botcha_default_form_ids()
- 7.2 botcha.install \_botcha_default_form_ids()
- 7.3 botcha.install \_botcha_default_form_ids()
1 call to _botcha_default_form_ids()
- botcha_install in ./
botcha.install - Implementation of hook_install().
File
- ./
botcha.install, line 74
Code
function _botcha_default_form_ids() {
// Some default BOTCHA points.
$form_ids = array(
'user_pass',
'user_login',
'user_login_block',
'user_register_form',
'contact_site_form',
'contact_personal_form',
'forum_node_form',
);
// Add form_ids of comment forms for all currently known node types too.
foreach (node_type_get_names() as $type => $name) {
$form_ids[] = 'comment_node_' . $type . '_form';
}
return $form_ids;
}