Update modules.php

Added $param
This commit is contained in:
Damien BENOIT 2021-05-18 15:23:29 +02:00 committed by GitHub
parent 6bbd6db84b
commit e7ac39fe35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,6 +65,7 @@ $arrayfields = array(
);
$arrayfields = dol_sort_array($arrayfields, 'position');
$param = '';
/*
@ -277,7 +278,7 @@ if ($arrayfields['module_position']['checked']) {
}
// Fields from hook
$parameters = array('arrayfields'=>$arrayfields, 'param'=>empty($param) ? '' : $param, 'sortfield'=>$sortfield, 'sortorder'=>$sortorder);
$parameters = array('arrayfields'=>$arrayfields, 'param'=>$param, 'sortfield'=>$sortfield, 'sortorder'=>$sortorder);
$reshook = $hookmanager->executeHooks('printFieldListOption', $parameters); // Note that $action and $object may have been modified by hook
print $hookmanager->resPrint;