Advertisement
Guest User

DetailView

a guest
Aug 29th, 2019
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.62 KB | None | 0 0
  1. public function getWidgets()
  2. {
  3. $userPrivilegesModel = Users_Privileges_Model::getCurrentUserPrivilegesModel();
  4. $widgetLinks = parent::getWidgets();
  5. $widgets = array();
  6.  
  7.  $widgets[] = array(
  8.     'linktype' => 'DETAILVIEWWIDGET',
  9.      'linklabel' => 'LBL_GRAFICO_FIDO',
  10.      'linkName' => 'GraficoFido',
  11.      'linkurl' => 'module=Accounts&view=Detail&record='.$this->getRecord()->getId().'&mode=showGraficoFido',
  12.      'action'   =>  array(),
  13.      'actionURL' => ''
  14.  );
  15.  
  16.  foreach ($widgets as $widgetDetails) {
  17.      $widgetLinks[] = Vtiger_Link_Model::getInstanceFromValues($widgetDetails);
  18.  }
  19.  
  20.  return $widgetLinks;
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement