I wrote a patch that allows you to replace each word in the node content with a defined word (like say "Rat" or "Spam" ;-) See attached. It leaves tags intact, so links, images, styling et cetera will remain in place.

Note that in order for this patch to work (on PHP5.3 anyway) you need to change the function definition of hook_misery_perform:

 /**
  * Implementation of hook_misery_perform().
  */
-function misery_misery_perform($handler, $type, &$params = array()) {
+function misery_misery_perform($handler, $type, $params = array()) {
   switch ($handler) {
     case 'delay':
       $min = variable_get('misery_delay_min', 0);
CommentFileSizeAuthor
#1 misery-spam-2.patch2.56 KBcafuego
misery-spam.patch2.92 KBcafuego
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

cafuego’s picture

FileSize
2.56 KB

Oops, forgot to remove my debug that turns on $endures_misery for everyone. Fixed.

danielb’s picture

hahahahaha good one

danielb’s picture

Status: Active » Fixed

committed the patch
good job on doing that properly too!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Updated issue summary.