Ok, if I make getDisplayTab return an empty string, the tab will not be displayed to the user or anyone else browsing that user's tab for that matter.
The function getEditTab also needs to return an empty string in order for the user not to see the tab when he/she goes to edit their profile.
So in summation:
[code:1]function getEditTab($tab,$user,$ui)
{
if ($ui == 1)
{
return '';
}
elseif ($ui ==2)
{
$return = "<p>this is the back-end edit tab</p>";
return $return;
}
}
function getDisplayTab($tab,$user,$ui)
{
if ($ui == 1)
{
return '';
}
elseif ($ui ==2)
{
$return = "<p>this is the back-end display (not used i believe)</p>";
return $return;
}
}
[/code:1]
Please correct me if this is just straight up wrong.