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 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);
Comment | File | Size | Author |
---|---|---|---|
#1 | misery-spam-2.patch | 2.56 KB | cafuego |
misery-spam.patch | 2.92 KB | cafuego |
Comments
Comment #1
cafuego CreditAttribution: cafuego commentedOops, forgot to remove my debug that turns on $endures_misery for everyone. Fixed.
Comment #2
danielb CreditAttribution: danielb commentedhahahahaha good one
Comment #3
danielb CreditAttribution: danielb commentedcommitted the patch
good job on doing that properly too!
Comment #4.0
(not verified) CreditAttribution: commentedUpdated issue summary.