From 575fc9f90dc22d3fb61cf9ff9478823d2085aae4 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 27 Feb 2018 22:06:21 +0100 Subject: [PATCH] NEW add hook moreHtmlStatus to complete to status on banners --- htdocs/core/class/hookmanager.class.php | 1 + htdocs/core/class/html.form.class.php | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/htdocs/core/class/hookmanager.class.php b/htdocs/core/class/hookmanager.class.php index 1a19e313e08..8b8ae3651df 100644 --- a/htdocs/core/class/hookmanager.class.php +++ b/htdocs/core/class/hookmanager.class.php @@ -154,6 +154,7 @@ class HookManager 'getIdProfUrl', 'getDirList', 'moveUploadedFile', + 'moreHtmlStatus', 'pdf_build_address', 'pdf_writelinedesc', 'pdf_getlinenum', diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index ba0ea7a37c2..df26e44e080 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -6285,6 +6285,11 @@ class Form { $ret.=''; } + + $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.='
'.$morehtmlstatus.'
'; // Left part of banner