From 98dcc195117bab35363c75e14af08858b6dbba3d Mon Sep 17 00:00:00 2001 From: Friendika Date: Thu, 30 Dec 2010 14:36:35 -0800 Subject: [PATCH] page_header hook --- addon/README | 4 ++++ include/nav.php | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/addon/README b/addon/README index 23e1b5c6..0264e6b2 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 af0c5871..74b4defc 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']);