Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
trigger.php
Go to the documentation of this file.
1 <?php
8 $result = elgg_trigger_plugin_hook('get_status', 'example', null, true);
9 
10 if ($result) {
11  var_dump('Plugin hook says ok!');
12 } else {
13  var_dump('Plugin hook says no.');
14 }
$result
The current value for the hook is passed into the trigger function.
Definition: trigger.php:8
elgg_trigger_plugin_hook($hook, $type, $params=null, $returnvalue=null)
Definition: elgglib.php:801