add hook beforeBodyClose

This commit is contained in:
Christian Foellmann 2021-10-05 10:41:11 +02:00
parent f0703b414a
commit caf26d95d6

View File

@ -3081,7 +3081,7 @@ if (!function_exists("llxFooter")) {
*/
function llxFooter($comment = '', $zone = 'private', $disabledoutputofmessages = 0)
{
global $conf, $db, $langs, $user, $mysoc, $object;
global $conf, $db, $langs, $user, $mysoc, $object, $hookmanager;
global $delayedhtmlcontent;
global $contextpage, $page, $limit;
global $dolibarr_distrib;
@ -3304,6 +3304,11 @@ if (!function_exists("llxFooter")) {
}
}
$reshook = $hookmanager->executeHooks('beforeBodyClose'); // Note that $action and $object may have been modified by some hooks
if ($reshook > 0) {
print $hookmanager->resPrint;
}
print "</body>\n";
print "</html>\n";
}