From 117ddbdff2acfa4a95f3d568dc6e0f25f7b16105 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Salvador?= Date: Wed, 26 Jun 2013 11:09:03 +0200 Subject: [PATCH] add columns if active hooks use the formBuilddocLineOptions method --- htdocs/core/class/html.formfile.class.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/htdocs/core/class/html.formfile.class.php b/htdocs/core/class/html.formfile.class.php index 8d8022a026465..0d2e3163be6df 100644 --- a/htdocs/core/class/html.formfile.class.php +++ b/htdocs/core/class/html.formfile.class.php @@ -455,7 +455,13 @@ function showdocuments($modulepart,$filename,$filedir,$urlsource,$genallowed,$de $out.= ''; if ($printer) $out.= ''; - + if($hookmanager->hooks['formfile']) + { + foreach($hookmanager->hooks['formfile'] as $module) + { + if(method_exists($module, 'formBuilddocLineOptions')) $out .= ''; + } + } $out.= ''; // Execute hooks