feat: ajout pipeline post_edition
This commit is contained in:
parent
392c535fe4
commit
a55cd7cb40
1 changed files with 18 additions and 1 deletions
|
@ -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');
|
||||||
|
|
Loading…
Add table
Reference in a new issue