From: friendica Date: Wed, 28 Mar 2012 03:15:15 +0000 (-0700) Subject: profile_tabs hook X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0aa99acd35efa2b0f95363c461b931d2deb52b3f;p=friendica.git profile_tabs hook --- diff --git a/boot.php b/boot.php index 76c0057bdd..3dcb32dfa7 100755 --- a/boot.php +++ b/boot.php @@ -1381,6 +1381,11 @@ function profile_tabs($a, $is_owner=False, $nickname=Null){ ); } + + $arr = array('is_owner' => $is_owner, 'nickname' => $nickname, 'tab' => (($tab) ? $tab : false), 'tabs' => $tabs); + call_hooks('profile_tabs', $arr); + $tpl = get_markup_template('common_tabs.tpl'); - return replace_macros($tpl,array('$tabs'=>$tabs)); + + return replace_macros($tpl,array('$tabs' => $arr['tabs'])); }} diff --git a/include/contact_widgets.php b/include/contact_widgets.php index 135a9e4e86..9d7085d201 100755 --- a/include/contact_widgets.php +++ b/include/contact_widgets.php @@ -46,7 +46,7 @@ function networks_widget($baseurl,$selected = '') { return ''; - $r = q("select distinct(network) from contact where uid = %d", + $r = q("select distinct(network) from contact where uid = %d and self = 0", intval(local_user()) );