Add Hook doPreMassActions
Add Hook doPreMassActions to allow dedicated form display for custom mass actions
This commit is contained in:
parent
12b4909c45
commit
4761671fc8
@ -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;
|
||||||
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user