]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Corrected a couple typos in the documentation that are being registered as php errors
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 2 Nov 2010 21:40:07 +0000 (21:40 +0000)
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 2 Nov 2010 21:40:07 +0000 (21:40 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@7206 36083f99-b078-4883-b0ff-0f9b5a30f544

documentation/examples/hooks/register/advanced.php
documentation/examples/hooks/register/basic.php

index 48cddd4807d1823b5095d4959a1e72d45b2e0d57..a21a2e232fc264b12abf2d53e19344ec6296efd8 100644 (file)
@@ -1,23 +1,23 @@
 <?php
 
 // the output:page hook is triggered by page_draw().
-register_plugin_hook('output', 'page', 'example_plugin_hook_handler', 600)
+register_plugin_hook('output', 'page', 'example_plugin_hook_handler', 600);
 register_plugin_hook('output', 'page', 'example_plugin_hook_handler_2', 601);
 
 function example_plugin_hook_handler($event, $type, $value, $params) {
        // change A to @
        $value = str_replace('A', '@', $value);
        
-       return $value
+       return $value;
 }
 
 function example_plugin_hook_handler($event, $type, $value, $params) {
        // change S to $
        $value = str_replace('S', '$', $value);
        
-       return $value
+       return $value;
 }
 
 $content = 'This is some Sample Content.';
 
-page_draw('Title', $content);
+page_draw('Title', $content);
\ No newline at end of file
index 957e827435ca36ecbd894f00d644dda1192dcb52..4cedbf0fd41be2120a4a50dba525a24ff8737476 100644 (file)
@@ -6,7 +6,7 @@ function example_plugin_hook_handler($event, $type, $value, $params) {
        var_dump($event);
        var_dump($type);
        var_dump($value);
-       var_dump($params):
+       var_dump($params);
        
        return true;
 }