profile_tabs hook
This commit is contained in:
parent
7ee07daf04
commit
0aa99acd35
7
boot.php
7
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');
|
$tpl = get_markup_template('common_tabs.tpl');
|
||||||
return replace_macros($tpl,array('$tabs'=>$tabs));
|
|
||||||
|
return replace_macros($tpl,array('$tabs' => $arr['tabs']));
|
||||||
}}
|
}}
|
||||||
|
|
|
@ -46,7 +46,7 @@ function networks_widget($baseurl,$selected = '') {
|
||||||
return '';
|
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())
|
intval(local_user())
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue