We are using a plugin that has created its own record for storing private messages. When deleting a message, it's calling the delete()
method on an instance of the record, which appears to be using the CActiveRecord
's implementation of delete.
In CActiveRecord::delete()
, it has a $this->afterDelete()
method, which looks like it should be raising an onAfterDelete
event, but I haven't had any luck hooking into it.
I've tried craft()->on('pluginhandle_messageRecord.onAfterDelete', ...)
and craft()->on('cActiveRecord.onAfterDelete', ...)
, but neither gets triggered.
Does anyone know the correct syntax for hooking into this event for this specific custom record?
Thanks!