aboutsummaryrefslogtreecommitdiff
path: root/documentation/examples/hooks/all.php
blob: 76b562335cfc80f8c5484d2505ffd508c70d8261 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<?php
/**
 * This snippet demonstrates how to register for multiple hooks with the same
 * type.
 */

elgg_register_plugin_hook_handler('all', 'system', 'example_plugin_hook_handler');

// This function will be called for any hook of type 'system'
function example_plugin_hook_handler($hook, $type, $value, $params) {
	// logic here.
}