I'm working on integration of my D7 module with Rules. I have custom SQL table with 2 columns node_id and status. Status may have values 0, 1, 2, 3. How can I create event with hook_rules_event_info to react on status change? I.e. status changed from 0 to 1 -> send email to node owner.

1 Answer 1


If this is a formal drupal node you can use node update event , then check if the node->status is changed or not (you have 2 versions of node in this event one referring to unchanged and second refers to changed noge)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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