Posted by hankpalan.com on November 20, 2009 at 6:42pm
3 followers
Jump to:
| Project: | Gotcha - Contact Spam Catcher |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
This was brought up in issue [292165]
I wanted to add Gotcha to my comment form.
I was instructed by #hutch to simple add:
case 'comment_form':in function gotcha_form_alter() which is circa line 118 in gotcha.module
By doing so it threw and error:
An error occurred.
/ajax_comments/js
<br />
<b>Fatal error</b>: Call to undefined function contact_mail_page_submit() in <b> /sites/all/modules/gotcha/gotcha.module</b> on line <b>338</b><br />Looking at line 338:
// Looks okay, so send it on to Contact.
contact_mail_page_submit($form, $form_state);
}From my non-coding background, logically this would look like this module is only targeting the mail functions and won't work for comments without some serious re-write. Is this fair to assume?
Comments
#1
Sorry here is the issue link properly: #292165: gotcha for D6
#2
Looks like gotcha_contact_submit() will need a bit of code too. Detect that it's a comment ($id) and run the comment submit function or the contact submit function
Kinda busy right now so if anyone else wants to try that ;-)
#3
Has anyone implemented this and got it working?
If not: @ hutch: How many beers are necessary to get this feature?