use multiple dbs for objet_inserer

Hallo,

I would like to create an author based on form data submitted in a formulaire_traiter function of a SPIP CVT form.

But this author should be generated on another spip website which has a separate database.

I can easily declare the foreign database with a connect.php file (e.g. second.php),

but I don’t see a way I can use the function « objet_inserer » with this foreign « second » database.

Is there a way to tell SPIP to use a different database on the object_inserer, auteur_instituer, or objet_modified functions?

Thanks in advance. warm regards and happy spiping!
Urs