removed mods directory from the ATutor codebase
[atutor.git] / mods / scorm_packages / module_uninstall.php
diff --git a/mods/scorm_packages/module_uninstall.php b/mods/scorm_packages/module_uninstall.php
deleted file mode 100644 (file)
index 7604ff7..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php\r
-/*******\r
- * module_uninstall.php performs reversion of module_install.php\r
- */\r
-\r
-/*******\r
- * the line below safe-guards this file from being accessed directly from\r
- * a web browser. It will only execute if required from within an ATutor script,\r
- * in our case the Module::uninstall() method.\r
- */\r
-if (!defined('AT_INCLUDE_PATH')) { exit; }\r
-\r
-$directory = realpath(AT_INCLUDE_PATH . '../') . '/sco'; // a top level directory\r
-\r
-// check if the directory exists\r
-if (is_dir($directory)) {\r
-       require(AT_INCLUDE_PATH.'../mods/_core/file_manager/filemanager.inc.php');\r
-\r
-       if (!clr_dir($directory))\r
-               $msg->addError(array('MODULE_UNINSTALL', '<li>'.$directory.' can not be removed. Please manually remove it.</li>'));\r
-}\r
-\r
-/******\r
- * the following code checks if there are any errors (generated previously)\r
- * then uses the SqlUtility to run reverted database queries of module.sql, \r
- * ie. "create table" statement in module.sql is run as drop according table.\r
- */\r
-if (!$msg->containsErrors() && file_exists(dirname(__FILE__) . '/module.sql')) {\r
-  // deal with the SQL file:\r
-  require(AT_INCLUDE_PATH . 'classes/sqlutility.class.php');\r
-  $sqlUtility = new SqlUtility();\r
-  $sqlUtility->revertQueryFromFile(dirname(__FILE__) . '/module.sql', TABLE_PREFIX);\r
-}\r
-\r
-?>
\ No newline at end of file