moodle/mod
2013-08-22 14:11:18 +08:00
..
assign Revert "MDL-39876 Change get_record('course') calls to get_course" 2013-08-21 13:42:30 +08:00
assignment MDL-39954 event: Fixed errors raised while triggering event 2013-08-14 15:29:12 +08:00
book Revert "MDL-39876 Change get_record('course') calls to get_course" 2013-08-21 13:42:30 +08:00
chat Revert "MDL-39876 Change get_record('course') calls to get_course" 2013-08-21 13:42:30 +08:00
choice Merge branch 'MDL-38759-master' of https://github.com/mackensen/moodle 2013-07-30 08:58:14 +12:00
data Revert "MDL-39876 Change get_record('course') calls to get_course" 2013-08-21 13:42:30 +08:00
feedback Revert "MDL-39876 Change get_record('course') calls to get_course" 2013-08-21 13:42:30 +08:00
folder Revert "MDL-39876 Change get_record('course') calls to get_course" 2013-08-21 13:42:30 +08:00
forum Merge branch 'MDL-41125-master' of git://github.com/FMCorz/moodle 2013-08-22 10:32:54 +08:00
glossary Revert "MDL-39876 Change get_record('course') calls to get_course" 2013-08-21 13:42:30 +08:00
imscp Revert "MDL-39876 Change get_record('course') calls to get_course" 2013-08-21 13:42:30 +08:00
label MDL-40438 migrate all collatorlib:: and textlib:: uses 2013-08-06 21:04:35 +02:00
lesson Revert "MDL-39876 Change get_record('course') calls to get_course" 2013-08-21 13:42:30 +08:00
lti Revert "MDL-40931 useragent: separated user agent functionality into a lib" 2013-08-22 13:31:25 +08:00
page Revert "MDL-39876 Change get_record('course') calls to get_course" 2013-08-21 13:42:30 +08:00
quiz Revert "MDL-39876 Change get_record('course') calls to get_course" 2013-08-21 13:42:30 +08:00
resource Revert "MDL-39876 Change get_record('course') calls to get_course" 2013-08-21 13:42:30 +08:00
scorm Revert "MDL-35380 SCORM: improve check for imsmanifest file and consolidate into a single function." 2013-08-22 14:11:18 +08:00
survey MDL-40438 migrate all collatorlib:: and textlib:: uses 2013-08-06 21:04:35 +02:00
url Revert "MDL-39876 Change get_record('course') calls to get_course" 2013-08-21 13:42:30 +08:00
wiki Revert "MDL-39876 Change get_record('course') calls to get_course" 2013-08-21 13:42:30 +08:00
workshop Revert "MDL-39876 Change get_record('course') calls to get_course" 2013-08-21 13:42:30 +08:00
index.html
README.txt
upgrade.txt MDL-40438 migrate all collatorlib:: and textlib:: uses 2013-08-06 21:04:35 +02:00

ACTIVITY MODULES
----------------

These are main modules in Moodle, allowing various activities.


Each of these modules contains a number of expected components:

  mod_form.php: a form to setup/update a module instance

  version.php: defines some meta-info and provides upgrading code

  pix/icon.gif: a 16x16 icon for the module

  db/install.xml: 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

         There are a number of standard functions:

         modulename_add_instance()
         modulename_update_instance()
         modulename_delete_instance()

         modulename_user_complete()
         modulename_user_outline()

         modulename_cron()

         modulename_print_recent_activity()


If you are a developer and interested in developing new Modules see:

   Moodle Documentation:  http://moodle.org/doc
   Moodle Community:      http://moodle.org/community