]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixed several typos in documentation examples
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 2 Nov 2010 23:56:08 +0000 (23:56 +0000)
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 2 Nov 2010 23:56:08 +0000 (23:56 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@7209 36083f99-b078-4883-b0ff-0f9b5a30f544

documentation/examples/hooks/basic.php
documentation/examples/hooks/register/all.php
documentation/examples/hooks/register/emit.php

index fe0b847a2789f4a4f9e22945ff6b5e24fc6c2c6a..d9055a4aa01d8ee243a354c589c63c7c4a94b79a 100644 (file)
@@ -17,7 +17,7 @@ function example_plugin_hook($hook, $type, $value, $params) {
        return $value;
 }
 
-function example_plugin_hook($hook, $type, $value, $params) {
+function example_plugin_hook_2($hook, $type, $value, $params) {
        $username = isset($params['username']) ? $params['username'] : NULL;
        if (is_array($value)) {
                switch($username) {
index f2e4407a67490223213783cceaf6eb10df03fe88..6c23ed56bf9ce7e812f87cd7a68ecd0e6bc5ca6a 100644 (file)
@@ -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.
 }
index bcf9917949a8b5ca9348f25707fca227e26ba709..d0ea2c4ad6191c87a15e162c08d5a498fd788e08 100644 (file)
@@ -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();