Merge pull request #7123 from defrance/patch-21
Adding Hook for tooltip on project
This commit is contained in:
commit
a2b450a2a1
@ -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';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user