aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-03-27 20:15:15 -0700
committerfriendica <info@friendica.com>2012-03-27 20:15:15 -0700
commit0aa99acd35efa2b0f95363c461b931d2deb52b3f (patch)
tree1040a54f7db429c779ed8766e1afee83d2439ba9
parent7ee07daf04e516900fb1d9c77debf7f2b7f91fc8 (diff)
downloadvolse-hubzilla-0aa99acd35efa2b0f95363c461b931d2deb52b3f.tar.gz
volse-hubzilla-0aa99acd35efa2b0f95363c461b931d2deb52b3f.tar.bz2
volse-hubzilla-0aa99acd35efa2b0f95363c461b931d2deb52b3f.zip
profile_tabs hook
-rwxr-xr-xboot.php7
-rwxr-xr-xinclude/contact_widgets.php2
2 files changed, 7 insertions, 2 deletions
diff --git a/boot.php b/boot.php
index 76c0057bd..3dcb32dfa 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 135a9e4e8..9d7085d20 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())
);