if you want to fire the rule set with PHP. To give a 30 days' notice I would suggest using Rules Scheduler.
Heh.
Another way of doing it is using rules_evaluate_rule_set() or possibly rules_invoke_rule_set(). I don't really know how to use them (and I have never tried calling a rule set in code), but you can proabaly/hopefully find what you need on the following pages:
(I was a little confused by the second argument in rules_evalute_rule_set. And the third and the fourth one.)
If you find an easy way to describe how to call rule sets from PHP, a line or two in this thread would be appreciated.
Comments
The best way is: take him to
The best way is:
take him to your office, tell him he is fired and give him a 30 days notice in writing.... ;-D
(sorry, I had too.... )
Not just any writing!
You'll probably have to use something like
<?phpprint "Rule set, you are fired.";
?>
Heh.
Another way of doing it is using
rules_evaluate_rule_set()or possiblyrules_invoke_rule_set(). I don't really know how to use them (and I have never tried calling a rule set in code), but you can proabaly/hopefully find what you need on the following pages:http://drupalcontrib.org/api/function/rules_evaluate_rule_set/6
http://drupalcontrib.org/api/function/rules_invoke_rule_set/6
(I was a little confused by the second argument in rules_evalute_rule_set. And the third and the fourth one.)
If you find an easy way to describe how to call rule sets from PHP, a line or two in this thread would be appreciated.
Good luck!
//Johan Falk, NodeOne, Sweden
Got it!
I knew I'd seen this question before:
http://groups.drupal.org/node/61018#comment-190358
Good luck,
//Johan Falk