";
if (is_array($lnk))
{
foreach ($lnk as $thisLnk)
{
if ($toolsRow['adminlink'])
{
$cell_content .= '
'.Display::return_icon('edit.gif', get_lang('Edit')).'';
//echo "edit link:".$properties['adminlink'];
}
else
{
$cell_content .= "
".$thisLnk['name']."";
}
}
}
// RH: Allow editing of invisible homepage links (modified external_module)
if ($toolsRow["added_tool"] == 1 && api_is_allowed_to_edit() && !$toolsRow["visibility"])
{
$cell_content .= "
".get_lang("Edit")."";
}
}
$table->setCellContents($cell_number / $numcols, ($cell_number) % $numcols, $cell_content);
$table->updateCellAttributes($cell_number / $numcols, ($cell_number) % $numcols, 'width="32%" height="42"');
$cell_number ++;
}
$table->display();
} // end function showtools2($cat)
?>