diff options
author | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-02 23:56:08 +0000 |
---|---|---|
committer | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-02 23:56:08 +0000 |
commit | 6e51bcd2d33417f529da15baa5a413ebfc0ca993 (patch) | |
tree | 0d9e2f1f77093eeb4295ba84340fcc94e66606d5 /documentation/examples/hooks/register | |
parent | e4224c70c270a7ebf16e006a8324d6a944de6fbc (diff) | |
download | elgg-6e51bcd2d33417f529da15baa5a413ebfc0ca993.tar.gz elgg-6e51bcd2d33417f529da15baa5a413ebfc0ca993.tar.bz2 |
Fixed several typos in documentation examples
git-svn-id: http://code.elgg.org/elgg/trunk@7209 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'documentation/examples/hooks/register')
-rw-r--r-- | documentation/examples/hooks/register/all.php | 2 | ||||
-rw-r--r-- | documentation/examples/hooks/register/emit.php | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/documentation/examples/hooks/register/all.php b/documentation/examples/hooks/register/all.php index f2e4407a6..6c23ed56b 100644 --- a/documentation/examples/hooks/register/all.php +++ b/documentation/examples/hooks/register/all.php @@ -2,7 +2,7 @@ register_plugin_hook('all', 'system', 'example_plugin_hook_handler'); -// This function will be called for any event of type 'object' +// This function will be called for any hook of type 'system' function example_plugin_hook_handler($hook, $type, $value, $params) { // logic here. } diff --git a/documentation/examples/hooks/register/emit.php b/documentation/examples/hooks/register/emit.php index bcf991794..d0ea2c4ad 100644 --- a/documentation/examples/hooks/register/emit.php +++ b/documentation/examples/hooks/register/emit.php @@ -1,5 +1,6 @@ <?php +// @todo this is an event, not a hook register_elgg_event_handler('test', 'example', 'example_init_system_callback'); $params = new ElggObject(); |