Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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
Comment #1
hankpalan.com CreditAttribution: hankpalan.com commentedSorry here is the issue link properly: #292165: gotcha for D6
Comment #2
hutch CreditAttribution: hutch commentedLooks 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 ;-)
Comment #3
dddave CreditAttribution: dddave commentedHas anyone implemented this and got it working?
If not: @ hutch: How many beers are necessary to get this feature?