removed mods directory from the ATutor codebase
[atutor.git] / mods / wiki / plugins / lib / save_storevars.php
diff --git a/mods/wiki/plugins/lib/save_storevars.php b/mods/wiki/plugins/lib/save_storevars.php
deleted file mode 100644 (file)
index 2ac4df0..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-
-/*
-   This plugin automatically stores global variables into a
-   pages {meta} field, if they is saved after editing.
-
-   In the following configuration array you can define which variable
-   is to be stored with which name into the {meta} field.
-*/
-
-#-- which vars to store:
-$ewiki_config["save_storevars"] = array(
-#   "global_var" => "meta_field_name",
-#   "icon" => "icon",
-#   "counter" => "X-Hit-Counter",
-);
-
-
-#-- glue
-$ewiki_plugins["edit_save"][] = "ewiki_edit_save_storevars";
-
-
-#-- implementation
-function ewiki_edit_save_storevars(&$save, &$old_data) {
-
-   global $ewiki_config;
-
-   foreach ($ewiki_config["save_storevars"] as $globalname => $metaname) {
-      if ($value = &$GLOBALS[$globalname]) {
-         $save["meta"][$metaname] = $value;
-      }
-   }
-}
-
-?>
\ No newline at end of file