aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfabrixxm <fabrix.xm@gmail.com>2011-01-03 10:08:53 +0100
committerfabrixxm <fabrix.xm@gmail.com>2011-01-03 10:08:53 +0100
commit11a44a107da2951e469976508ae57748fe7dee70 (patch)
treeb7f67764d950978a60bd429896f9eed464e929b4
parentc061603746dfcb47b19d151ac94d3ef3d9d02767 (diff)
downloadvolse-hubzilla-11a44a107da2951e469976508ae57748fe7dee70.tar.gz
volse-hubzilla-11a44a107da2951e469976508ae57748fe7dee70.tar.bz2
volse-hubzilla-11a44a107da2951e469976508ae57748fe7dee70.zip
add plugin hook to home page content
-rw-r--r--addon/README4
-rw-r--r--mod/home.php3
2 files changed, 7 insertions, 0 deletions
diff --git a/addon/README b/addon/README
index 83407d6a1..7089634d2 100644
--- a/addon/README
+++ b/addon/README
@@ -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
diff --git a/mod/home.php b/mod/home.php
index 53b111bdf..2d646f8dd 100644
--- a/mod/home.php
+++ b/mod/home.php
@@ -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;