Skip to content
Extraits de code Groupes Projets
Valider c750ada6 rédigé par cerdic's avatar cerdic
Parcourir les fichiers

"passer les arguments dans le pipe notification, cela permet d'y faire ce que...

"passer les arguments dans le pipe notification, cela permet d'y faire ce que l'on veut sans surcharge"
parent bc1b06d6
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -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')) {
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter