removed mods directory from the ATutor codebase
[atutor.git] / mods / wiki / plugins / markup / definitionlinks.php
diff --git a/mods/wiki/plugins/markup/definitionlinks.php b/mods/wiki/plugins/markup/definitionlinks.php
deleted file mode 100644 (file)
index df08c0c..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-<?php
-
-/*
-   Turns definition list titles into anchors and all occourences
-   of the terms into links to there.
-*/
-
-$ewiki_plugins["format_final"][] = "ewiki_format_final_deflistanchors";
-function ewiki_format_final_deflistanchors(&$html) {
-   $words = array();
-   $html = preg_replace(
-      '#<dt>([_\w\s]+)</dt>#me',
-      '"<dt><a name=\"" . strtr($words[]="$1", " ", "_") . "\">$1</a></dt>"',
-      $html
-   );
-   if ($words) {
-      $html = preg_replace(
-         '#(?<!>)(' . implode("|", $words) . ')(?![<"])#e',
-         '"<a href=\"#" . strtr("$1", " ", "_") . "\">$1</a>"',
-         $html
-      );
-   }
-}
-
-?>
\ No newline at end of file