2
0
forked from Wavyzz/dolibarr

Merge pull request #2 from simicar29/simicar29-patch-3

Add Hook doPreMassActions
This commit is contained in:
simicar29
2020-01-24 09:43:34 +01:00
committed by GitHub

View File

@@ -166,3 +166,13 @@ if ($massaction == 'presend')
dol_fiche_end(); 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;
}