Skip to content

Commit

Permalink
Add Hook doPreMassActions
Browse files Browse the repository at this point in the history
Add Hook doPreMassActions to allow dedicated form display for custom mass actions
  • Loading branch information
simicar29 committed Jan 24, 2020
1 parent 12b4909 commit 4761671
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions htdocs/core/tpl/massactions_pre.tpl.php
Expand Up @@ -166,3 +166,13 @@

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;
}

0 comments on commit 4761671

Please sign in to comment.