diff --git a/htdocs/core/lib/pdf.lib.php b/htdocs/core/lib/pdf.lib.php index c022d3fda67beb4268b55d7f6386f16f07e3d9ad..a7ce8d44c3201b736602088b959e145b14df937f 100644 --- a/htdocs/core/lib/pdf.lib.php +++ b/htdocs/core/lib/pdf.lib.php @@ -1647,11 +1647,13 @@ function pdf_getLinkedObjects($object,$outputlangs,$hookmanager=false) } } + // For add external linked objects if (is_object($hookmanager)) { $parameters = array('linkedobjects' => $linkedobjects, 'outputlangs'=>$outputlangs); $action=''; $hookmanager->executeHooks('pdf_getLinkedObjects',$parameters,$object,$action); // Note that $action and $object may have been modified by some hooks + if (! empty($hookmanager->resArray)) $linkedobjects = $hookmanager->resArray; } return $linkedobjects;