Is it possible to use rules to create a condition which looks for certain keywods in a node or comment which is about to be published? (to filter for a custom set of bad words for example)

I know it's possible with action/triggers but I wonder if I can also use rules for this. Can't seem to find it (or any documentation).

Comments

fago’s picture

Component: Rules Core » Rules Engine

There is no such condition yet, but of course you can write one. See the developers docs for how to do that. However the core provided actions having this feature can be used too.

ycimlynn’s picture

subscribe

Would be a useful feature. I have done some coding around nodes, but comments are a bit of a different ballgame.

locomo’s picture

subscribe

mitchell’s picture

Category: feature » support
mitchell’s picture

Title: How to create a containing keyword condition » Condition: containing keyword
Version: 6.x-1.1 » 7.x-2.x-dev
Category: support » feature
Status: Active » Postponed (maintainer needs more info)
tr’s picture

Component: Rules Engine » Rules Core
Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (works as designed)

Seems like this is easy with the Text Comparison condition using a regular expression on the node:body:value variable.