From 1c3c7737f87cb7bc35f3abe4e4d143cb831be1a7 Mon Sep 17 00:00:00 2001 From: b_b <brunobergot@gmail.com> Date: Mon, 14 Dec 2009 16:42:26 +0000 Subject: [PATCH] ajout d'un pipeline post_edition en fin d'action tourner (merci cerdic) --- ecrire/action/tourner.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/ecrire/action/tourner.php b/ecrire/action/tourner.php index 366d87d2d4..875b709021 100644 --- a/ecrire/action/tourner.php +++ b/ecrire/action/tourner.php @@ -94,6 +94,22 @@ function action_tourner_post($r) spip_log("j'efface $effacer"); spip_unlink($effacer); } + // pipeline pour les plugins + pipeline('post_edition', + array( + 'args' => array( + 'table' => 'spip_documents', + 'table_objet' => 'documents', + 'spip_table_objet' => 'spip_documents', + 'type' =>'document', + 'id_objet' => $arg, + 'champs' => array('rotation'=>$var_rot,'fichier'=>$row), + 'serveur' => $serveur, + 'action'=>'tourner', + ), + 'data' => array('fichier'=>$row) + ) + ); } } -- GitLab