If you have a plugin that is triggered by more than one event, how can you tell which event called the plugin? I know I can make a solution work by writing separate plugin code for each event involved in a process, but it’d be nice to keep things in one place if possible and use something like:
switch ($the_event_that_called_me):
case 'OnDocLoad':
...
case 'OnSave':
...
This is currently for MODx 0.9.6.3 - 1.0... but it’d also be useful for Revolution too.
Thanks!