From: Friendika Date: Thu, 30 Dec 2010 22:36:35 +0000 (-0800) Subject: page_header hook X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=98dcc195117bab35363c75e14af08858b6dbba3d;p=friendica.git page_header hook --- diff --git a/addon/README b/addon/README index 23e1b5c6fe..0264e6b24d 100644 --- a/addon/README +++ b/addon/README @@ -114,6 +114,10 @@ Current hooks: $b is (string) converted text +'page_header' - called after building the page navigation section + $b is (string) HTML of nav region + + *** = subject to change diff --git a/include/nav.php b/include/nav.php index af0c58710d..74b4defc38 100644 --- a/include/nav.php +++ b/include/nav.php @@ -49,7 +49,6 @@ $a->page['nav'] .= '' . t('Contacts') . "\r\n"; - } @@ -57,9 +56,10 @@ $banner = get_config('system','banner'); - if($banner === false) $banner .= 'logoFriendika'; $a->page['nav'] .= ''; + + call_hooks('page_header', $a->page['nav']);