Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm using mollom to catch spam. The normal sitewide contact form is protected by it. But the sitewide contact form within the block isn't protected anymore.
Comment | File | Size | Author |
---|---|---|---|
#6 | contact_form_blocks.6.patch | 13.8 KB | sun |
#5 | contact_form_blocks.5.patch | 12.68 KB | sun |
Comments
Comment #1
fuerst CreditAttribution: fuerst commentedThat can be done by implementing
hook_mollom_form_info()
as described in mollom/mollom.api.php. I welcome patches for an implementation of it.Comment #2
boabjohn CreditAttribution: boabjohn commentedRighto...wish I could patch. Anyone out there with some chops and a casual afternoon? This patch would be really quite useful!
Comment #3
paddy_mul CreditAttribution: paddy_mul commentedsubscribing...
Comment #4
scott859 CreditAttribution: scott859 commentedsubscribing
Comment #5
sunAttached patch revamps this module to properly integrate with Form API and do not break other modules that also attach to the contact form.
Comment #6
sunAttached patch additionally re-implements the removal of disabled categories from the regular site-wide contact form.
I've also updated the comment about D7, since #757154: Base form_id via hook_forms() not taken into account for #validate, #submit, hook_form_FORMID_alter() just landed. Yay! :)
Comment #7
sunStill RTBC. :)
Comment #8
fuerst CreditAttribution: fuerst commentedThanks for the patch. Will look into it in the next days. Just overloaded currently..
Comment #9
roborracle CreditAttribution: roborracle commentedI tried to merge the patch in to the source files, but kept running in to errors - specifically with this section:
I'm not much of a programmer but that made zero sense to me. Also -there is a patch listed for the .info file but I couldn't really tell if there were substantial differences from the original to the patch. If anyone could help I'd be most grateful!
Comment #10
sunThis patch is against latest code in CVS, which may differ from the code in the official release.
Comment #11
tallsimon CreditAttribution: tallsimon commentedcan this go in to a release please!!! would be really useful as webforms also currently breaks mollom when put in a block
Comment #12
fuerst CreditAttribution: fuerst commentedSorry for taking that long. I commited the patch from #6 (thanks a lot for the huge work!) and created a 6.x-1.x-dev release. Will be available in the next hours at the project page.
Comment #13
sun