In a plugin init function I'm listening to entries.saveEntry
and entries.deleteEntry
. This works perfectly if I'm editing entries from their detail view. If I 'bulk' change or delete entries, these events are not fired. I saw in the SetStatusElementAction
class an event called onSetStatus
is triggered but how can I listen to it? The same goes with the delete action.
Somehow the following doesn't get triggered for me:
craft()->on('entries.setStatus', function($event){ dd($event); });
What am I missing here?