Elgg  Version 1.9
trigger.php
Go to the documentation of this file.
1 <?php
8 elgg_trigger_event('test', 'example', $object);
9 
10 // elsewhere a handler could be registered by saying
11 elgg_register_event_handler('test', 'example', 'example_event_handler');
$object
These two snippets demonstrates triggering an event and how to register for that event.
Definition: trigger.php:7
elgg_register_event_handler($event, $object_type, $callback, $priority=500)
Register a callback as an Elgg event handler.
Definition: elgglib.php:669
elgg_trigger_event($event, $object_type, $object=null)
Trigger an Elgg Event and attempt to run all handler callbacks registered to that event...
Definition: elgglib.php:720
Elgg Object.
Definition: ElggObject.php:22