all.php 336 B

12345678910111213
  1. <?php
  2. /**
  3. * This snippet demonstrates how to register for multiple hooks with the same
  4. * type.
  5. */
  6. elgg_register_plugin_hook_handler('all', 'system', 'example_plugin_hook_handler');
  7. // This function will be called for any hook of type 'system'
  8. function example_plugin_hook_handler($hook, $type, $value, $params) {
  9. // logic here.
  10. }