aboutsummaryrefslogtreecommitdiff
path: root/documentation/examples/hooks/register/emit.php
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/examples/hooks/register/emit.php')
-rw-r--r--documentation/examples/hooks/register/emit.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/documentation/examples/hooks/register/emit.php b/documentation/examples/hooks/register/emit.php
index d0ea2c4ad..8382d72ca 100644
--- a/documentation/examples/hooks/register/emit.php
+++ b/documentation/examples/hooks/register/emit.php
@@ -1,7 +1,7 @@
<?php
// @todo this is an event, not a hook
-register_elgg_event_handler('test', 'example', 'example_init_system_callback');
+elgg_register_event_handler('test', 'example', 'example_init_system_callback');
$params = new ElggObject();
-trigger_elgg_event('test', 'example', $params);
+elgg_trigger_event('test', 'example', $params);