forked from Wavyzz/dolibarr
Merge pull request #2 from simicar29/simicar29-patch-3
Add Hook doPreMassActions
This commit is contained in:
@@ -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;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user