3 /***************************************************************************\
4 * SPIP, Systeme de publication pour l'internet *
6 * Copyright (c) 2001-2019 *
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')) {
19 * Extraire les infos de pipeline
23 function plugins_extraire_pipelines_dist(&$arbre) {
25 if (spip_xml_match_nodes(',^pipeline,', $arbre, $pipes)) {
26 foreach ($pipes as $tag => $p) {
27 if (!is_array($p[0])) {
28 list($tag, $att) = spip_xml_decompose_tag($tag);
31 foreach ($p as $pipe) {
33 if (is_array($pipe)) {
34 foreach ($pipe as $k => $t) {
35 $att[$k] = trim(end($t));