diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-09-15 15:40:51 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-09-15 15:40:51 +0000 |
commit | ea4403c9240c3778cddc90d48d0a59c4d47dd2d8 (patch) | |
tree | d62822795c186d7de87f3f5e337283d8007dae2a /documentation/examples/hooks/register/basic.php | |
parent | 4d008fefd2882a51309b5c6a7c3c7775fb34270d (diff) | |
download | elgg-ea4403c9240c3778cddc90d48d0a59c4d47dd2d8.tar.gz elgg-ea4403c9240c3778cddc90d48d0a59c4d47dd2d8.tar.bz2 |
Adding documentation and examples.
git-svn-id: http://code.elgg.org/elgg/trunk@6933 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'documentation/examples/hooks/register/basic.php')
-rw-r--r-- | documentation/examples/hooks/register/basic.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/documentation/examples/hooks/register/basic.php b/documentation/examples/hooks/register/basic.php new file mode 100644 index 000000000..957e82743 --- /dev/null +++ b/documentation/examples/hooks/register/basic.php @@ -0,0 +1,14 @@ +<?php + +register_plugin_hook('forward', 'system', 'example_plugin_hook_handler'); + +function example_plugin_hook_handler($event, $type, $value, $params) { + var_dump($event); + var_dump($type); + var_dump($value); + var_dump($params): + + return true; +} + + |