This pipeline is a trigger that runs after the insertion of new records into the database. This allows you to perform specific actions after record insertion.
The pipeline passes the name of the table, the identifier of the record created and an array of the fields and values inserted:
pipeline('post_insertion',
array(
'args' => array(
'table' => 'spip_articles',
'id_objet' => $id_article
),
'data' => $champs
)
);