Merge pull request #18904 from cfoellmann/PR/hook-beforebodyclose
NEW add hook `beforeBodyClose`
This commit is contained in:
commit
30ac1fbf01
@ -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";
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user