sql query in/as condition

Events happening in the community are now at Drupal community events on www.drupal.org.
henrijs.seso'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.

Comments

Yep, that makes sense. A

fago's picture

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

henrijs.seso's picture

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.

Rules

Group organizers

Group categories

Categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: