Closed (fixed)
Project:
Honeypot
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
7 Sep 2012 at 18:48 UTC
Updated:
11 Feb 2013 at 19:50 UTC
Jump to comment: Most recent file
the hook should pass on form_values and the options.
The idea is that I can then count the number of forms that a user opens and can deny submission later if I think there are too many of them.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 1778296-5-honeypot-hooks-d6.patch | 3.15 KB | geerlingguy |
| #2 | 1778296-2-honeypot-hooks.patch | 3.18 KB | geerlingguy |
Comments
Comment #1
geerlingguy commentedApplying to 7.x first. What do you think of these additional hooks?
I would add
hook_honeypot_form_protections_alter()andhook_honeypot_add_form_protection(). Documentation can be found inhoneypot.api.php.Comment #2
geerlingguy commentedForgot to attach patch...
Comment #3
geerlingguy commented#2: 1778296-2-honeypot-hooks.patch queued for re-testing.
Comment #4
geerlingguy commentedAdded hooks in 7.x: http://drupalcode.org/project/honeypot.git/commit/91d921f
Moving to 6.x. Will try to do a quick/straight port of the patch here.
Comment #5
geerlingguy commentedComment #6
geerlingguy commentedMarking for commit in my next batch of fixes.
Comment #7
geerlingguy commentedFixed in D6: http://drupalcode.org/project/honeypot.git/commit/ef31753