sql query in/as condition

mansspams's picture

I am looking for a way to use sql query in condition of rule - if sql query returns something - proceed with rule, if it returns nothing - skip rule. Can anyone suggest way to go in this case? Thanks.

Groups:
Login to post comments

Yep, that makes sense. A

fago's picture
fago - Fri, 2009-07-17 17:18

Yep, that makes sense. A separate "sql query" condition would be nice. However I think we have to watch out for sql injection, thus best don't allow input evaluation in the query itself but provide a list of arguments where the user can use input evaluation.


feature request

mansspams's picture
mansspams - Fri, 2009-07-17 19:56

I did little mistake and posted this in issues for Rules (http://drupal.org/node/521640) and i got some help and then i turned this into feature request. We could use pre-created view as condition.