NEW add hook moreHtmlStatus to complete to status on banners

This commit is contained in:
Laurent Destailleur 2018-02-27 22:06:21 +01:00
parent bbef8b0ce6
commit 575fc9f90d
2 changed files with 6 additions and 0 deletions

View File

@ -154,6 +154,7 @@ class HookManager
'getIdProfUrl',
'getDirList',
'moveUploadedFile',
'moreHtmlStatus',
'pdf_build_address',
'pdf_writelinedesc',
'pdf_getlinenum',

View File

@ -6285,6 +6285,11 @@ class Form
{
$ret.='</ul></div>';
}
$parameters=array();
$reshook=$hookmanager->executeHooks('moreHtmlStatus',$parameters, $object); // Note that $action and $object may have been modified by hook
if (empty($reshook)) $morehtmlstatus.=$hookmanager->resPrint;
else $morehtmlstatus=$hookmanager->resPrint;
if ($morehtmlstatus) $ret.='<div class="statusref">'.$morehtmlstatus.'</div>';
// Left part of banner