Elgg
Version 2.3
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
docs
examples
events
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
$object
These two snippets demonstrates triggering an event and how to register for that event.
Definition:
trigger.php:7
example_event_handler
example_event_handler($event, $type, $object)
Definition:
basic.php:11
elgg_register_event_handler
elgg_register_event_handler($event, $object_type, $callback, $priority=500)
Definition:
elgglib.php:550
$type
if(!$display_name) $type
Definition:
delete.php:27
Generated on Sat Dec 21 2024 00:01:03 for Elgg by
1.8.11