modules/Announcements/models/DetailView.php
<?php
/**
* Announcements DetailView Model Class.
*
* @copyright YetiForce S.A.
* @license YetiForce Public License 6.5 (licenses/LicenseEN.txt or yetiforce.com)
* @author Mariusz Krzaczkowski <m.krzaczkowski@yetiforce.com>
*/
class Announcements_DetailView_Model extends Vtiger_DetailView_Model
{
/** {@inheritdoc} */
public function getDetailViewRelatedLinks()
{
$relatedLinks = parent::getDetailViewRelatedLinks();
$relatedLinks[] = [
'linktype' => 'DETAILVIEWTAB',
'linklabel' => 'LBL_USERS',
'linkurl' => $this->getRecord()->getDetailViewUrl() . '&mode=showUsers',
'linkicon' => 'fa-user',
'linkKey' => 'LBL_USERS',
'related' => 'Users',
];
return $relatedLinks;
}
}