eventAdd

Called after an event has been added to the calendar.

function( addInfo )

This fires after Calendar::addEvent is called or when an event is dropped in from a different calendar. If being called as a result of the latter, eventAdd will be fired before drop and eventReceive. It does not fire when an external element is dropped; use eventReceive for that.

The addInfo argument has the following properties:

eventan Event Object for the added event
relatedEventsan 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
reverta function that can be called to reverse this action