I have the following code:
namespace Craft;
class AffiliatesExportPlugin extends BasePlugin
{
//All other functions
public function init() {
craft()->on('entries.onDeleteEntry', function(Event $event) {
Craft::log(" on delete ######\n\n", LogLevel::Info, true);
});
}
}
I added this as a plugin activated the plugin, but when I delete an entry, it doesn't seem to get triggered. What am I doing wrong?