]> git.mxchange.org Git - friendica.git/commitdiff
add plugin hook to home page content
authorfabrixxm <fabrix.xm@gmail.com>
Mon, 3 Jan 2011 09:08:53 +0000 (10:08 +0100)
committerfabrixxm <fabrix.xm@gmail.com>
Mon, 3 Jan 2011 09:08:53 +0000 (10:08 +0100)
addon/README
mod/home.php

index 83407d6a17e7db9efa3d756b75baa91d3af6d9e8..7089634d2667abc5c5bb8f06ee556d89088da7cf 100644 (file)
@@ -124,6 +124,10 @@ Current hooks:
                'xml' => the complete XML to be output
  
 
+'home_content' - called prior to output home page content, shown to unlogged users
+       $b is (string) HTML of section region
+
+
 *** = subject to change
 
 
index 53b111bdf7d492da4c13a01036b1c1a5f5e125fa..2d646f8dd8a4b09553a9fc365fff80f6e7b301aa 100644 (file)
@@ -24,6 +24,9 @@ function home_content(&$a) {
                $o .= file_get_contents('home.html');
 
        $o .= login(($a->config['register_policy'] == REGISTER_CLOSED) ? 0 : 1);
+       
+       call_hooks("home_content",$o);
+       
        return $o;