From c750ada6003ec307c1eed05965c83f95e37fb0a9 Mon Sep 17 00:00:00 2001 From: Cerdic <cedric@yterium.com> Date: Thu, 20 Mar 2008 15:50:26 +0000 Subject: [PATCH] "passer les arguments dans le pipe notification, cela permet d'y faire ce que l'on veut sans surcharge" --- ecrire/inc/notifications.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ecrire/inc/notifications.php b/ecrire/inc/notifications.php index 4fa275570c..cc605c0fd9 100644 --- a/ecrire/inc/notifications.php +++ b/ecrire/inc/notifications.php @@ -16,8 +16,10 @@ if (!defined("_ECRIRE_INC_VERSION")) return; // La fonction de notification de base, qui dispatche le travail // http://doc.spip.org/@inc_notifications_dist function inc_notifications_dist($quoi, $id=0, $options=array()) { + // charger les fichiers qui veulent ajouter des definitions - pipeline('notifications'); + // ou faire des trucs aussi dans le pipeline, ca fait deux api pour le prix d'une ... + pipeline('notifications',array('args'=>array('quoi'=>$quoi,'id'=>$id,'options'=>$options))); if (function_exists($f = 'notifications_'.$quoi) OR function_exists($f = $f.'_dist')) { -- GitLab