1

I have a custom form that I'm protecting with Mollom. Once validated, the form results in an entity being created and some emails being sent.

If the form is valid, but Mollom says it should be moderated, I need the entity to be created with its "Held in moderation" field set, but no emails to be sent (I'll do this once an admin has said it's OK).

I have Mollom working and testing mode enabled. Putting "ham" in works. Putting "spam" in stops it dead. Putting "unsure" with an incorrect captcha stops it dead and putting "unsure" with a correct captcha allows it through.

I'm trying to find a test to make Mollom say "hold this in moderation" and call the moderation callback that I have set in hook_mollom_form_info(). None of the test cases above result in this callback being called.

1 Answer 1

0

You need to enable testing mode and configure the form protected by Mollom to Retain spam posts manual moderation, e.g. in the below screenshot you see I had it wrong.

screenshot

Then submit the form with "spam" in the main field and it will call your moderation function.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.