aboutsummaryrefslogtreecommitdiff
path: root/documentation/examples/hooks/register/all.php
blob: 0ff19bc86d24d17675d9a847768db36809591a3b (plain)
1
2
3
4
5
6
7
8
<?php

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.
}