I have a module which performs a specific task. The task itself runs fine, though it also needs to be exectued when a specific rule is triggered. Is there a hook for rules which I can use in my module to check if a specific rule has been fired?


You can make that "specific task" as an action to a rule using hook_rules_action_info and add that action for the rules which you want to exectue.

  • Yep, this ended up being the way to go. And it wasn't as difficult as I first thought. – user9395 Aug 29 '12 at 14:14
  • is there an example of how to do this? – Patoshi パトシ Apr 13 '17 at 19:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.