Merge pull request #7123 from defrance/patch-21

Adding Hook for tooltip on project
This commit is contained in:
Laurent Destailleur 2017-07-21 15:18:27 +02:00 committed by GitHub
commit a2b450a2a1

View File

@ -1000,6 +1000,17 @@ class Project extends CommonObject
}
$linkclose.=' title="'.dol_escape_htmltag($label, 1).'"';
$linkclose.=' class="classfortooltip"';
if (! is_object($hookmanager)) {
include_once DOL_DOCUMENT_ROOT.'/core/class/hookmanager.class.php';
$hookmanager=new HookManager($this->db);
}
$hookmanager->initHooks(array('projectdao'));
$parameters=array('id'=>$this->id);
// Note that $action and $object may have been modified by some hooks
$reshook=$hookmanager->executeHooks('getnomurltooltip',$parameters,$this,$action);
if ($reshook > 0)
$linkclose = $hookmanager->resPrint;
}
$picto = 'projectpub';