aboutsummaryrefslogtreecommitdiff
path: root/documentation/examples/hooks/basic.php
blob: 734d9e884829e0e8b7d2b35d55e95058a5587fd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
/**
 * The handler for a plugin hook receives information about the hook (name and
 * type), the current value for the hook, and parameters related to the hook.
 */

elgg_register_plugin_hook_handler('forward', '404', 'example_plugin_hook_handler');

function example_plugin_hook_handler($hook, $type, $value, $params) {
	var_dump($hook);
	var_dump($type);
	var_dump($value);
	var_dump($params);

	// we are not changing $value so return null
	return null;
}
d=9ff321903af577f9a4a8ad22abf125345b04d63c'>73f0f60aa30da00f1477128914cb5edd9f707579 /448/03e parentc6c76d605cf6bcdabe590a92134ed3ee6dff51ba (diff)downloadarquivo-9ff321903af577f9a4a8ad22abf125345b04d63c.tar.gz
arquivo-9ff321903af577f9a4a8ad22abf125345b04d63c.tar.bz2
update
Diffstat (limited to '448/03e')
-rw-r--r--448/03e/SHA256E-s1091--68fafea200e16b242038d85cef4b6d4025f9f2543c6c15b0da9ea005077d56ef.html.log1
1 files changed, 1 insertions, 0 deletions