]> git.mxchange.org Git - friendica.git/commitdiff
profile_tabs hook
authorfriendica <info@friendica.com>
Wed, 28 Mar 2012 03:15:15 +0000 (20:15 -0700)
committerfriendica <info@friendica.com>
Wed, 28 Mar 2012 03:15:15 +0000 (20:15 -0700)
boot.php
include/contact_widgets.php

index 76c0057bddde19b2efc253bbe4ad7346e396e593..3dcb32dfa7a04d3b5c69d831b22cdc9cbdae7862 100755 (executable)
--- 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']));
 }}     
index 135a9e4e8655a51f584504797709f28e87daeadb..9d7085d2012d0bca711d6f7b19d6c196062a9aba 100755 (executable)
@@ -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())
        );