Merge pull request #1641 from tobiasd/20150601-navinfo_hook

nav_info hook and documentation in en and de
This commit is contained in:
fabrixxm 2015-06-01 14:01:47 +02:00
commit 620455c4de
3 changed files with 9 additions and 0 deletions

View File

@ -268,6 +268,10 @@ $b is an array, params to mail()
'body'
'headers'
###'nav_info'
is called after the navigational menu is build in include/nav.php.
$b is an array containing $nav from nav.php.
Complete list of hook callbacks
---

View File

@ -176,6 +176,9 @@ Du kannst ebenso plugin_name_init(&$a) nutzen, was oft frühzeitig aufgerufen wi
'email' => Email-Adresse, um nach dem Avatar zu suchen
'url' => generierte URL (String) des Avatars
**'nav_info'**
- wird aufgerufen nachdem in include/nav,php der Inhalt des Navigations Menüs erzeugt wurde.
- $b ist ein Array, das $nav wiederspiegelt.
Eine komplette Liste aller Hook-Callbacks mit den zugehörigen Dateien (am 14-Feb-2012 generiert): Bitte schau in die Quellcodes für Details zu Hooks, die oben nicht dokumentiert sind.

View File

@ -200,6 +200,8 @@ function nav_info(&$a) {
if($banner === false)
$banner .= '<a href="http://friendica.com"><img id="logo-img" src="images/friendica-32.png" alt="logo" /></a><span id="logo-text"><a href="http://friendica.com">Friendica</a></span>';
call_hooks('nav_info', $nav);
return array(
'sitelocation' => $sitelocation,