Mollom Unpublish all nodes fallback

serpisor2 - February 8, 2009 - 21:44
Project:Mollom
Version:6.x-1.7
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:duplicate
Description

Mollom currently has 2 available fallbacks: block all or allow all. This patch adds a fallback (when mollom servers are down) that will accept submissions but mark them as unpublished ($node->status = 0).

It does this by saving a variable inside the fallback function and in nodeapi it checks for that variable and if it is set to 1, it will unpublish the node and set a message for the user to let him know the node will be reviewed by an administrator.

WARNING: this patch does not check if the node type is being monitored by Mollom before marking it as unpublished, thus it will mark as unpublished ALL node types, not just the ones monitored by Mollom. If anyone requires this check, let me know and I will add it.

WARNING: this patch only works for nodes, it will accept anything else.

Sorry if there is anything wrong with the patch file, it is the first patch i make.

AttachmentSize
mollom.patch6.12 KB

#1

Dave Reid - October 14, 2009 - 00:01
Status:needs review» duplicate

Marking this as a duplicate of #364575: Alternative rejection and fallback strategies (moderation, unpublishing) since it has a few more comments already.

 
 

Drupal is a registered trademark of Dries Buytaert.