feat: bigform.php ajout de la fonciton de vérification et d'un pipeline pour changer les options

This commit is contained in:
Christophe 2023-06-28 23:20:16 +02:00
parent 77f391a155
commit 63662f2966
2 changed files with 15 additions and 0 deletions

View file

@ -24,6 +24,20 @@ function formulaires_bigform_charger_dist($objet, $id_objet, $mode = 'auto', $ar
function formulaires_bigform_verifier_dist($objet, $id_objet, $mode = 'auto', $args = array()) {
$erreurs = array();
$options = pipeline('bigform_verifier', [
'args' => [
'id_objet' => $id_objet,
'objet' => $objet,
'mode' => $mode,
'args' => $args
],
'data' => []
]);
$bigform = charger_fonction('bigform_verifier','inc');
$bigform($options,$erreurs);
return $erreurs;
}

View file

@ -23,5 +23,6 @@
<pipeline nom="post_edition" inclure="bigform_pipelines.php" />
<pipeline nom="bigform_verifier" action='' />
</paquet>