These docs are for an old release.
View the v7 docs
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:
| 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 |