removed mods directory from the ATutor codebase
[atutor.git] / mods / wiki / plugins / edit / helptext.php
diff --git a/mods/wiki/plugins/edit/helptext.php b/mods/wiki/plugins/edit/helptext.php
deleted file mode 100644 (file)
index 000c015..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-/*
-   If this plugin is loaded, it automatically fetches the contents of
-   "EditingHelp" and makes that display instead of the default editing
-   note.
-   
-   That page can contain one or two text snippets (then separated by
-   a horizontal line). Currently only works for English text.
-*/
-
-
-$ewiki_plugins["edit_hook"][] = "ewiki_edit_helptext";
-function ewiki_edit_helptext($id, &$data, &$hpost) {
-   global $ewiki_t;
-   if ($help = ewiki_db::GET("EditingHelp")) {
-      $help = ewiki_format( $help["content"] );
-      if ($l = strpos($help, "<hr")) {
-         $ewiki_t["en"]["EDIT_FORM_1"] = substr($help, 0, $l);
-         $l = strpos($help, ">", $l);
-         $help = substr($help, $l + 1);
-      }
-      $ewiki_t["en"]["EDIT_FORM_2"] = $help;
-   }
-}
-
-?>
\ No newline at end of file