moodle/mod
Petr Skoda 6b04fdc0b6 MDL-32400 improve module generators
Module generators are using standard *_add_instance() methods which helps with testing, it also updates grades and calendar events if used.
2012-04-15 14:16:59 +02:00
..
assignment MDL-32400 improve module generators 2012-04-15 14:16:59 +02:00
chat Revert "MDL-30843 and MDL-30842 - accessibility compliance: Add <label> for form input text and select tag" 2012-04-11 17:18:58 +12:00
choice MDL-32251 more E_STRICT fixes 2012-03-30 19:02:58 +02:00
data MDL-32400 improve module generators 2012-04-15 14:16:59 +02:00
feedback Revert "MDL-30843 and MDL-30842 - accessibility compliance: Add <label> for form input text and select tag" 2012-04-11 17:18:58 +12:00
folder MDL-32251 E_STRICT fixes part 3 2012-03-29 15:24:30 +02:00
forum MDL-32400 improve module generators 2012-04-15 14:16:59 +02:00
glossary Revert "MDL-30843 and MDL-30842 - accessibility compliance: Add <label> for form input text and select tag" 2012-04-11 17:18:58 +12:00
imscp MDL-32251 E_STRICT fixes part 3 2012-03-29 15:24:30 +02:00
label MDL-19125 module restrictions: addinstance capabilities for all mods 2012-03-15 17:13:43 +00:00
lesson Revert "MDL-30843 and MDL-30842 - accessibility compliance: Add <label> for form input text and select tag" 2012-04-11 17:18:58 +12:00
lti MDL-32149 tests for mod_wiki, mod_lti and mod_scorm 2012-04-03 22:30:59 +02:00
page MDL-32400 improve module generators 2012-04-15 14:16:59 +02:00
quiz Revert "MDL-30843 and MDL-30842 - accessibility compliance: Add <label> for form input text and select tag" 2012-04-11 17:18:58 +12:00
resource MDL-32251 E_STRICT fixes part 3 2012-03-29 15:24:30 +02:00
scorm Revert "MDL-30843 and MDL-30842 - accessibility compliance: Add <label> for form input text and select tag" 2012-04-11 17:18:58 +12:00
survey MDL-19125 module restrictions: addinstance capabilities for all mods 2012-03-15 17:13:43 +00:00
url MDL-32251 E_STRICT fixes part 3 2012-03-29 15:24:30 +02:00
wiki Revert "MDL-30843 and MDL-30842 - accessibility compliance: Add <label> for form input text and select tag" 2012-04-11 17:18:58 +12:00
workshop MDL-32149 scale generator and workshop tests 2012-04-03 22:31:00 +02:00
index.html
README.txt Fixed location of icon.gif 2010-03-24 10:56:22 +00:00
upgrade.txt MDL-19125 module restrictions: document change in mod/upgrade.txt 2012-03-15 17:13:54 +00: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