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']);