rszrama asked fago in this issue #899422: Invoke a hook when an event occurs? for a generic way to invoke hooks and rule_events.
This function is implemented now: rules_invoke_all
Since rszrama and I came across this topic today I thought I create a patch where I replace the both function call with the new one.

CommentFileSizeAuthor
commerce-use-rules_invoke_all.patch5.64 KBdas-peter

Comments

rszrama’s picture

Status: Needs review » Fixed

Pulled this in and added documentation for these hooks since they'll be a little harder to detect coming through rules_invoke_all() with a simple grep.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.