You are here

function antibot_active_form_ids in Antibot 7

Determine the form IDs that should contain Antibot protection.

Return value

string A list of form IDs that can contain wildcard (*) characters. The form IDs are separated by newline characters.

2 calls to antibot_active_form_ids()
antibot_admin_settings in ./antibot.admin.inc
Admin settings form.
antibot_form_alter in ./antibot.module
Implements hook_form_alter().

File

./antibot.module, line 110
Attempt to prevent robotic form submissions and spam.

Code

function antibot_active_form_ids() {

  // See if we have IDs set.
  if (!($ids = variable_get('antibot_form_ids', NULL))) {

    // Provide default IDs.
    $ids = implode("\n", array(
      'comment_node_*',
      'user_login',
      'user_login_block',
      'user_pass',
      'user_register_form',
      'contact_site_form',
    ));
  }
  return $ids;
}