Merge pull request #2121 from rabuzarus/3011_viewcontactstitle

make viewcontacts part of the profile tab
This commit is contained in:
Michael Vogel 2015-11-30 23:29:35 +01:00
commit 712b3c7593
3 changed files with 33 additions and 2 deletions

View file

@ -700,6 +700,16 @@ if(! function_exists('profile_tabs')){
);
}
if ((! $is_owner) && ((count($a->profile)) || (! $a->profile['hide-friends']))) {
$tabs[] = array(
'label' => t('Contacts'),
'url' => $a->get_baseurl() . '/viewcontacts/' . $nickname,
'sel' => ((!isset($tab)&&$a->argv[0]=='viewcontacts')?'active':''),
'title' => t('Contacts'),
'id' => 'viewcontacts-tab',
'accesskey' => 'k',
);
}
$arr = array('is_owner' => $is_owner, 'nickname' => $nickname, 'tab' => (($tab) ? $tab : false), 'tabs' => $tabs);
call_hooks('profile_tabs', $arr);