Elgg  Version 1.11
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)
Definition: elgglib.php:519
elgg_trigger_event($event, $object_type, $object=null)
Definition: elgglib.php:570