Merge pull request #12923 from simicar29/develop

New: Add Hook doPreMassActions
This commit is contained in:
Laurent Destailleur 2020-01-26 22:32:46 +01:00 committed by GitHub
commit 3215af9900
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -166,3 +166,15 @@ if ($massaction == 'presend')
dol_fiche_end();
}
// Allow Pre-Mass-Action hook (eg for confirmation dialog)
$parameters = array(
'toselect' => $toselect,
'uploaddir' => $uploaddir
);
$reshook=$hookmanager->executeHooks('doPreMassActions', $parameters, $object, $action);
if ($reshook < 0) {
setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
} else {
print $hookmanager->resPrint;
}