Summary:
I wrote a module that adds event handlers for certain "add", "edit", and "delete" events for content, template, and stylesheet objects. It works, but I noticed that certain Admin console operations don't send core events when they modify these type of objects. I did a quick investigation and found that bulk delete and copy operations don't send any of these events, nor does adding a new content page. It is unclear if these "holes in event coverage" are by design or by accident. So, I thought I'd ask here for clarification.
Details of Investigation:
Note: I investigated only a subset of core events, those of interest to my module--this was in no way a comprehensive investigation. I made a quick survey of the CMSMS 1.10.3 source code to determine which files contain code that sends any of the events that my module is interested in: "add", "edit", and "delete" events for either content, template, and stylesheet objects. Then, I made a simple matrix that lists each of those files with its associated Admin op. Finally, I added to the matrix those Admin op's that modify either content, template, or stylesheet objects, but don't seem to send any events before or after doing so. I attached an image of the resulting matrix to this post. Empty cells in the matrix indicate cases where no events are sent. These are the areas in question.
Results:
Unless I'm missing something, it appears that:
- Bulk delete operations for content, templates, and stylesheets don't send events.
- Adding new content/page doesn't send an event; in fact, no "add content" event is currently defined!
- Copy operations for content, templates and stylesheets don't send events.
Thanks,
Fred P.