These docs are for an old release. Info on upgrading to v6
edit doc

eventAdd

Called after an event has been added to the calendar.

function( addInfo )

This fires after Calendar::addEvent is called or when an external event is dropped from outside the calendar or from a different calendar. If being called as a result of the latter two, eventAdd will be fired after eventReceive.

The addInfo argument has the following properties:

event an Event Object for the added event
relatedEvents an array of other related Event Objects that have also been added. an event might have other recurring event instances or might be linked to other events with the same groupId
revert a function that can be called to reverse this action