You are here

function _botcha_default_form_ids in BOTCHA Spam Prevention 7.2

Same name and namespace in other branches
  1. 6 botcha.install \_botcha_default_form_ids()
  2. 6.2 botcha.install \_botcha_default_form_ids()
  3. 6.3 botcha.install \_botcha_default_form_ids()
  4. 7 botcha.install \_botcha_default_form_ids()
  5. 7.3 botcha.install \_botcha_default_form_ids()
2 calls to _botcha_default_form_ids()
botcha_update_7200 in ./botcha.install
Create flexible relationships between recipe books and recipes and between recipe books and forms.
botcha_update_7201 in ./botcha.install
Create an interface to manage the list of forms that are forbidden to protect.

File

./botcha.install, line 189

Code

function _botcha_default_form_ids() {

  // Some default BOTCHA points.
  $form_ids = array(
    'contact_personal_form',
    'contact_site_form',
    'forum_node_form',
    'update_script_selection_form',
    'user_login',
    'user_login_block',
    'user_pass',
    'user_register_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;
}