pipeline post_edition, où est pass é id_objet ?
6ril <[email protected]>
| Newsgroups | gmane.comp.web.spip.user |
|---|---|
| Message-ID | <[email protected]> |
Bonjour,
Un spip_log sur le flux args me retourne ça sur ce pipeline, en 3.2.9,
c'est normal ???
[args] => Array
(
[table] => spip_articles
)
Où sont passés les autres params de args ?
https://programmer.spip.net/post_edition-757
le flux data me retourne ça:
[data] => Array
(
[id_rubrique] => 19
[id_secteur] => 6
[statut] => prepa
[date] => 2021-03-27 11:01:33
[lang] => fr
[langue_choisie] => non
)
Comment je chope l'id objet ?
le code:
$obj = objet_type($flux['args']['table']);
if (
//verif qu'on est sur un objet article:
in_array($obj, array('article'))
//et qu'on est en création:
&& _request(("id_$obj")) == 'oui') {
spip_log($flux,'second_fichier');
}
Merci pour vos réponses please, HELP.