add plugin hook to home page content
This commit is contained in:
parent
c061603746
commit
11a44a107d
|
@ -124,6 +124,10 @@ Current hooks:
|
||||||
'xml' => the complete XML to be output
|
'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
|
*** = subject to change
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,9 @@ function home_content(&$a) {
|
||||||
$o .= file_get_contents('home.html');
|
$o .= file_get_contents('home.html');
|
||||||
|
|
||||||
$o .= login(($a->config['register_policy'] == REGISTER_CLOSED) ? 0 : 1);
|
$o .= login(($a->config['register_policy'] == REGISTER_CLOSED) ? 0 : 1);
|
||||||
|
|
||||||
|
call_hooks("home_content",$o);
|
||||||
|
|
||||||
return $o;
|
return $o;
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user