Add Hook doPreMassActions

Add Hook doPreMassActions to allow dedicated form display for custom mass actions
This commit is contained in:
simicar29 2020-01-24 09:41:22 +01:00 committed by GitHub
parent 12b4909c45
commit 4761671fc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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