I posted this in a new thread so it didn't get lost in the noise - also so others using the latest stable 4.6 - 4.6.5 as of today - would be able to find this patch.

It's not tested; it needs some eyes - but the patch works for me and is based on earlier patches.

--- comment.module.orig	2006-01-25 22:36:39.593183456 -0700
+++ comment.module	2006-01-25 22:50:09.268094160 -0700
@@ -441,6 +441,14 @@
   }
 
   // Validate the comment's body.
+// patch adds captcha module support
+// evilzenscientist 25Jan06
+// based on existing patches
+// comment.module_7.patch http://drupal.org/node/14708 
+//
+// Calls captcha to validate post.
+  module_invoke_all('comment', 'validate', $edit);
+// and back into the main comment code
   if ($edit['comment'] == '') {
     form_set_error('comment', t('The body of your comment is empty.'));
   }
@@ -1419,6 +1427,14 @@
 
   // format selector
   $form .= filter_form('format', $edit['format']);
+// patch adds captcha module support
+// evilzenscientist 25Jan06
+// based on existing patches
+// comment.module_7.patch http://drupal.org/node/14708 
+//
+// Calls captcha to validate post.
+  $form .= implode('', module_invoke_all('comment', 'form', $edit));
+// and back into the main comment code
 
   // preview button:
   $form .= form_hidden('cid', $edit['cid']);
CommentFileSizeAuthor
comment.module_44.patch1.02 KBevilzenscientist

Comments

wundo’s picture

Status: Active » Closed (fixed)