[SPIP] +version 3.0.7
[ptitvelo/web/www.git] / www / plugins-dist / textwheel / wheels / spip / spip-tableaux.php
diff --git a/www/plugins-dist/textwheel/wheels/spip/spip-tableaux.php b/www/plugins-dist/textwheel/wheels/spip/spip-tableaux.php
new file mode 100644 (file)
index 0000000..cf3fcbb
--- /dev/null
@@ -0,0 +1,15 @@
+<?php
+
+if (!defined('_ECRIRE_INC_VERSION')) return;
+
+include_spip('inc/texte');
+
+/**
+ * Callback de traitement de chaque tableau
+ *
+ * @param array $m
+ * @return string
+ */
+function replace_tableaux($m){
+       return $m[1] . traiter_tableau($m[2]) . $m[3];
+}