Given some recent changes in this module, I think it's a good idea to introduce a single function that can be used to enable antibot on a given form. This is useful for integrations like webform. I believe that module is currently just adding the pre render callback but that won't be enough any more; plus it's a bit confusing to other developers.

Comments

mstef created an issue. See original summary.

  • mstef committed 3ea2880 on 8.x-1.x
    Issue #2952851: Introduce a single function that can be used to enable...
mstef’s picture

Status: Active » Fixed

Use antibot_protect_form(&$form) to add Antibot protection to a given form.

mstef’s picture

Webform users can apply this patch (if needed): https://www.drupal.org/project/webform/issues/2953085#comment-12526638

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.