removed mods directory from the ATutor codebase
[atutor.git] / mods / google_calendar / module_install.php
diff --git a/mods/google_calendar/module_install.php b/mods/google_calendar/module_install.php
deleted file mode 100644 (file)
index 3bbed4b..0000000
+++ /dev/null
@@ -1,68 +0,0 @@
-<?php\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::install() method.\r
- */\r
-if (!defined('AT_INCLUDE_PATH')) { exit; }\r
-\r
-/*******\r
- * Note: the many options for these variables are used to decrease confusion.\r
- *       TRUE | FALSE | 1 will be the convention.\r
- *\r
- * $_course_privilege\r
- *     specifies the type of instructor privilege this module uses.\r
- *     set to empty | FALSE | 0   to disable any privileges.\r
- *     set to 1 | AT_PRIV_ADMIN   to use the instructor only privilege.\r
- *     set to TRUE | 'new'        to create a privilege specifically for this module:\r
- *                                will make this module available as a student privilege.\r
- *\r
- * $_admin_privilege\r
- *    specifies the type of ATutor administrator privilege this module uses.\r
- *    set to FALSE | AT_ADMIN_PRIV_ADMIN   to use the super administrator only privilege.\r
- *    set to TRUE | 'new'                  to create a privilege specifically for this module:\r
- *                                         will make this module available as an administrator privilege.\r
- *\r
- *\r
- * $_cron_interval\r
- *    if non-zero specifies in minutes how often the module's cron job should be run.\r
- *    set to 0 or not set to disable.\r
- */\r
-$_course_privilege = TRUE; // possible values: FALSE | AT_PRIV_ADMIN | TRUE\r
-//$_admin_privilege  = TRUE; // possible values: FALSE | TRUE\r
-//$_cron_interval    = 35; // run every 30 minutes\r
-\r
-\r
-/********\r
- * the following code is used for creating a module-specific directory.\r
- * it generates appropriate error messages to aid in its creation.\r
- */\r
-//$directory = AT_CONTENT_DIR .'hello_world';\r
-\r
-// check if the directory is writeable\r
-/*\r
-if (!is_dir($directory) && !@mkdir($directory)) {\r
-       $msg->addError(array('MODULE_INSTALL', '<li>'.$directory.' does not exist. Please create it.</li>'));\r
-} else if (!is_writable($directory) && @chmod($directory, 0666)) {\r
-       $msg->addError(array('MODULE_INSTALL', '<li>'.$directory.' is not writeable. On Unix issue the command <kbd>chmod a+rw</kbd>.</li>'));\r
-}\r
-*/\r
-\r
-/******\r
- * the following code checks if there are any errors (generated previously)\r
- * then uses the SqlUtility to run any database queries it needs, ie. to create\r
- * its own tables.\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
-\r
-       /*\r
-        * the SQL file could be stored anywhere, and named anything, "module.sql" is simply\r
-        * a convention we're using.\r
-        */\r
-       $sqlUtility->queryFromFile(dirname(__FILE__) . '/module.sql', TABLE_PREFIX);\r
-}\r
-\r
-?>
\ No newline at end of file