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.
Even though I set 'Forms don't submit:' to 100%, the users that are supposed to endure Misery are still able to send messages.
Comments
Comment #1
danielb CreditAttribution: danielb commentedCan you give more information?
Do other misery options work?
Do other forms prevent submission?
Have you tested it yourself and tried to submit any other forms?
Comment #2
white_pawn CreditAttribution: white_pawn commentedAll other options work, and other forms don't submit. Spammers are still able to send messages. Tested it myself. Using Privatemsg v1.3.
Comment #3
danielb CreditAttribution: danielb commentedI've identified the problem is that misery attaches itself to the $form['#validate'] whereas in that form it uses a #validate set on the submit function.
Comment #4
danielb CreditAttribution: danielb commentedI don't think I'm gonna be able to fix this using any reasonable means.
You can fix this by creating this hook implementation in your custom module:
None of the functionality in this module is really guaranteed to work 100% of the time, it will annoy the user where it can, I guess, but shouldn't be relied on for blocking users from the site, etc...
If someone can suggest an alternate solution that doesn't have too much of an impact on normal form loading times, etc.. please suggest.