Elgg
Version 2.3
|
Trigger an Elgg Event and attempt to run all handler callbacks registered to that event, type.This function attempts to run all handlers registered to $event, $object_type or the special keyword 'all' for either or both. If a handler returns false, the event will be cancelled (no further handlers will be called, and this function will return false).
$event is usually a verb: create, update, delete, annotation.
$object_type is usually a noun: object, group, user, annotation, relationship, metadata.
$object is usually an Elgg* object associated with the event.
When referring to events, the preferred syntax is "event, type".
string | $event | The event type |
string | $object_type | The object type |
string | $object | The object involved in the event |