Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It would be good for modules that integrate with Honeypot to know what kind of rejection happened with a Honeypot form rejection, so hook_honeypot_reject() should have a third parameter, $type, with either 'honeypot' or 'honeypot_time' passed in.
For the original impetus, see #1969212-11: Add hook_honeypot_reject so other modules can react to rejected form submissions.
Comment | File | Size | Author |
---|---|---|---|
#7 | 2067221-7-hook-honeypot-reject-d6.patch | 2.53 KB | geerlingguy |
#4 | 2067221-4-improve-hook-honeypot-reject.patch | 2.58 KB | geerlingguy |
#1 | 2067221-1-improve-hook-honeypot-reject.patch | 2.58 KB | geerlingguy |
Comments
Comment #1
geerlingguy CreditAttribution: geerlingguy commentedTestbot, go! (I'll need to port this up to D8 and back to D6 as well...).
Also need to make sure this API change is documented in the release node.
Comment #2
geerlingguy CreditAttribution: geerlingguy commentedI pushed up the patch... but because of #2066525: Pushed git commits and tags are delayed, unable to create release nodes, it's not yet showing up anywhere correctly :(
To be done:
Comment #3
geerlingguy CreditAttribution: geerlingguy commentedOkay, porting to D8 next... commit is finally showing up: http://drupalcode.org/project/honeypot.git/commit/272de49
Comment #4
geerlingguy CreditAttribution: geerlingguy commentedWill let a testbot check it out.
Comment #6
geerlingguy CreditAttribution: geerlingguy commentedTestbot failure was due to something unrelated; fixed with this commit: http://drupalcode.org/project/honeypot.git/commit/9a45267
I've finished the patch for 8.x, and committed it here: http://drupalcode.org/project/honeypot.git/commit/81baf3a
Next step is D6.
Comment #7
geerlingguy CreditAttribution: geerlingguy commentedSo, apparently I never added hook_honeypot_reject to Drupal 6. Doing so with the attached patch.
Comment #8
geerlingguy CreditAttribution: geerlingguy commentedResetting tags, and fixed in D6 with this commit: http://drupalcode.org/project/honeypot.git/commit/5a83f75