aboutsummaryrefslogtreecommitdiff
path: root/documentation/examples/hooks/trigger.php
blob: 4216fd6c060e01862530fcec33e795eff2e591ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php
/**
 * The current value for the hook is passed into the trigger function. Handlers
 * can change this value. In this snippet, we check if the value of true was
 * changed by the handler functions.
 */

$result = elgg_trigger_plugin_hook('get_status', 'example', null, true);

if ($result) {
	var_dump('Plugin hook says ok!');
} else {
	var_dump('Plugin hook says no.');
}