add hook 'llxFooter'

This commit is contained in:
Christian Foellmann 2022-11-23 20:47:32 +01:00
parent 53a1867be8
commit 1c5888d6d2
2 changed files with 12 additions and 0 deletions

View File

@ -195,6 +195,7 @@ class HookManager
'getFormatedSupplierRef',
'getIdProfUrl',
'getInputIdProf',
'llxFooter',
'menuDropdownQuickaddItems',
'menuLeftMenuItems',
'moveUploadedFile',

View File

@ -3213,6 +3213,17 @@ if (!function_exists("llxFooter")) {
$ext = 'layout='.$conf->browser->layout.'&version='.urlencode(DOL_VERSION);
// Hook to add more things on all pages within fiche DIV
$llxfooter = '';
$parameters = array();
$reshook = $hookmanager->executeHooks('llxFooter', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
if (empty($reshook)) {
$llxfooter .= $hookmanager->resPrint;
} elseif ($reshook > 0) {
$llxfooter = $hookmanager->resPrint;
}
print $llxfooter;
// Global html output events ($mesgs, $errors, $warnings)
dol_htmloutput_events($disabledoutputofmessages);