feat: ajout pipeline post_edition

This commit is contained in:
Christophe 2023-09-25 08:06:37 +02:00
parent 392c535fe4
commit a55cd7cb40

View file

@ -101,7 +101,24 @@ function formulaires_editer_gamuform_traiter_dist($id_objet = 0, $objet = '', $o
'data' => $set 'data' => $set
] ]
); );
sql_updateq($table, $set, "$id=".intval($id_objet)); $r = sql_updateq($table, $set, "$id=".intval($id_objet));
if ($r) {
pipeline(
'post_edition',
[
'args' => [
'table' => $table,
'id_objet' => $id_objet,
'objet' => $objet,
'action' => 'gamuform',
'update' => $update,
'options' => $options
],
'data' => $set
]
);
}
} }
} }
include_spip('inc/invalideur'); include_spip('inc/invalideur');