Elgg  Version 2.3
basic.php
Go to the documentation of this file.
1 <?php
9 elgg_register_event_handler('init', 'system', 'example_event_handler');
10 
11 function example_event_handler($event, $type, $object) {
12  var_dump($event);
13  var_dump($type);
14  var_dump($object);
15 
16  return true;
17 }
$object
These two snippets demonstrates triggering an event and how to register for that event.
Definition: trigger.php:7
example_event_handler($event, $type, $object)
Definition: basic.php:11
elgg_register_event_handler($event, $object_type, $callback, $priority=500)
Definition: elgglib.php:550
if(!$display_name) $type
Definition: delete.php:27