Skip to content

Commit

Permalink
nav_info hook and documentation in en and de
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasd committed Jun 1, 2015
1 parent c12a647 commit ec7f70e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/Plugins.md
Expand Up @@ -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
---

Expand Down
3 changes: 3 additions & 0 deletions doc/de/Plugins.md
Expand Up @@ -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.

Expand Down
2 changes: 2 additions & 0 deletions include/nav.php
Expand Up @@ -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,
Expand Down

0 comments on commit ec7f70e

Please sign in to comment.