aef46b197e2ba32111351394ef3a8c11d77ed488
3 /***************************************************************************\
4 * SPIP, Systeme de publication pour l'internet *
6 * Copyright (c) 2001-2014 *
7 * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James *
9 * Ce programme est un logiciel libre distribue sous licence GNU/GPL. *
10 * Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. *
11 \***************************************************************************/
13 if (!defined('_ECRIRE_INC_VERSION')) return;
17 * Extraire les infos de pipeline
21 function plugins_extraire_pipelines_dist(&$arbre){
23 if (spip_xml_match_nodes(',^pipeline,',$arbre,$pipes)){
24 foreach($pipes as $tag=>$p){
25 if (!is_array($p[0])){
26 list($tag,$att) = spip_xml_decompose_tag($tag);
29 else foreach($p as $pipe){
32 foreach($pipe as $k=>$t)
33 $att[$k] = trim(end($t));