diff options
Diffstat (limited to 'documentation/examples/events/basic.php')
-rw-r--r-- | documentation/examples/events/basic.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/documentation/examples/events/basic.php b/documentation/examples/events/basic.php new file mode 100644 index 000000000..b274137b8 --- /dev/null +++ b/documentation/examples/events/basic.php @@ -0,0 +1,13 @@ +<?php + +register_elgg_event_handler('init', 'system', 'example_event_handler'); + +function example_event_handler($event, $type, $params) { + var_dump($event); + var_dump($object_type); + var_dump($params); + + return true; +} + + |