Browse Source

add plugin hook to home page content

pull/1/head
fabrixxm 11 years ago
parent
commit
11a44a107d
2 changed files with 7 additions and 0 deletions
  1. +4
    -0
      addon/README
  2. +3
    -0
      mod/home.php

+ 4
- 0
addon/README View 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


+ 3
- 0
mod/home.php View 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;


Loading…
Cancel
Save