After calling rules_invoke_event(), how do I get data back from it?
Say that I had an event called 'pre_dive' that I invoke just before bringing up the Dive form.
I'd like to be able to have an 'abort_dive' action. If the user sets up a rule with a 'pre_dive' event trigger that ends up using the 'abort_dive' action, I want the calling function to know, so it redirects somewhere else, and never brings up the Dive form.
What's the best way to do this? rules_invoke_event() doesn't have a return value and doesn't pass variables by reference.