removed mods directory from the ATutor codebase
[atutor.git] / mods / wiki / plugins / mpi / mpi+cdml.php
diff --git a/mods/wiki/plugins/mpi/mpi+cdml.php b/mods/wiki/plugins/mpi/mpi+cdml.php
deleted file mode 100644 (file)
index f1a75d6..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-
-/*
-   This plugin adds the "CDML"-Syntax (as found in ProWiki) to the
-   mpi framework - you must load mpi.php also to make this work! Then
-   you could write
-
-     [[PluginName][arg1=val1][arg2=...]
-      ... more text here
-     ]
-
-   instead of the regular mpi <?plugin PluginName ... ?> syntax.
-*/
-
-
-$ewiki_plugins["format_source"][] = "ewiki_mpi_cdml_syntax";
-
-function ewiki_mpi_cdml_syntax(&$src) {
-   $src = preg_replace(
-     '/\[\[(\w+)\]([^\[\]]*)(\[\w+=[^\]]+?\])*([^\]]+)\]/imse',
-     '"<?plugin " . "$1" .
-      ($2 ? stripslashes(" $2 ") : "") .
-      ($3 ? strtr(stripslashes("$3"), "[]", "  ") : "") .
-      ($4 ? stripslashes(" $4") : "") .
-      " ?>"     
-     ', $src
-   );
-}
-
-
-?>
\ No newline at end of file