mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
add hook beforeBodyClose
This commit is contained in:
parent
f0703b414a
commit
caf26d95d6
|
|
@ -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