From: martin Date: Sat, 7 Sep 2002 03:31:36 +0000 (+0000) Subject: Added a template for new modules that contains the bare necessities. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=a48bf3ecd453af442adad747d93bbfbe59e2df63;p=moodle.git Added a template for new modules that contains the bare necessities. --- diff --git a/mod/README b/mod/README index a517ff4f25..a08f73aaf8 100644 --- a/mod/README +++ b/mod/README @@ -2,13 +2,19 @@ This directory contains all the learning modules. Standard components expected of each module: -mod.html: a form to setup/update a module instance -version.php: defines some meta-info and provides upgrading code -icon.gif: a 16x16 icon for the module -db/mysql.sql: an SQL dump of all the required db tables and data -index.php: a page to list all instances in a course -view.php: a page to view a particular instance -lib.php: any/all functions defined by the module should be in here. + mod.html: a form to setup/update a module instance + + version.php: defines some meta-info and provides upgrading code + + icon.gif: a 16x16 icon for the module + + db/mysql.sql: an SQL dump of all the required db tables and data + + index.php: a page to list all instances in a course + + view.php: a page to view a particular instance + + lib.php: any/all functions defined by the module should be in here. constants should be defined using MODULENAME_xxxxxx functions should be defined using modulename_xxxxxx @@ -23,3 +29,5 @@ lib.php: any/all functions defined by the module should be in here. modulename_cron() +See newmodule_template.zip in this directory for a blank template +to help you get started. diff --git a/mod/newmodule_template.zip b/mod/newmodule_template.zip new file mode 100644 index 0000000000..2c391f00a0 Binary files /dev/null and b/mod/newmodule_template.zip differ