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

hankpalan.com’s picture

Sorry here is the issue link properly: #292165: gotcha for D6

hutch’s picture

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 ;-)

dddave’s picture

Has anyone implemented this and got it working?

If not: @ hutch: How many beers are necessary to get this feature?