Use rules_invoke_all instead of rules_invoke_event