moodle/mod
tjhunt cf6155226c ajaxlib/require_js: MDL-16693 $PAGE->requires->... deprecates require_js etc.
There is a new implementation of require_js in lib/deprecatedlib.php,
based on $PAGE->requires.

There were a few other recently introduced functions in lib/weblib.php,
namely print_js_call, print_delayed_js_call, print_js_config and
standard_js_config. These have been removed, since they were never in
a stable branch, and all the places that used them have been changed
to use the newer $PAGE->requires->... methods.

get_require_js_code is also gone, and the evil places that were calling
it, even though it is an internal function, have been fixed.

Also, I made some minor improvements to the code I committed yesterday
for MDL-16695.

All that remains is to update all the places in core code that are
still using require_js.

(This commit also fixes the problem where the admin tree would not
start with the right categories expanded.)
2009-06-12 12:13:07 +00:00
..
assignment MDL-18293 $DB->something is using exceptions, no need for ifs there, removing useless strings 2009-06-03 20:25:27 +00:00
chat ajaxlib/require_js: MDL-16693 $PAGE->requires->... deprecates require_js etc. 2009-06-12 12:13:07 +00:00
choice MDL-18293 $DB->something is using exceptions, no need for ifs there, removing useless strings 2009-06-03 20:25:27 +00:00
data MDL-17327 data module - improve adv. search by avoiding all the extra joins when getting max number of records ; merged from 19_STABLE 2009-06-04 10:31:12 +00:00
feedback MDL-18293 $DB->something is using exceptions, no need for ifs there, removing useless strings 2009-06-03 20:25:27 +00:00
forum ajaxlib/require_js: MDL-16693 $PAGE->requires->... deprecates require_js etc. 2009-06-12 12:13:07 +00:00
glossary MDL-19403 glossary settings - add support to pixpath. Credit goes to Red Morris ; merged from 19_STABLE 2009-06-05 23:55:19 +00:00
hotpot MDL-18293 $DB->somethiong is using exceptions, no need for ifs tehre, removing useless strings 2009-06-03 20:00:08 +00:00
label MDL-19350 upgrade blocks - fixing minor bits in modules 2009-06-03 17:01:51 +00:00
lesson mod lib MDL-19294 Added boilerplate and phpdocs 2009-05-28 03:51:39 +00:00
quiz ajaxlib/require_js: MDL-16693 $PAGE->requires->... deprecates require_js etc. 2009-06-12 12:13:07 +00:00
resource resource MDL-18691 Implemented resource_get_name in one more place for dropdowns 2009-06-09 05:13:48 +00:00
scorm MDL-18293 $DB->somethiong is using exceptions, no need for ifs tehre, removing useless strings 2009-06-03 20:00:08 +00:00
survey mod lib MDL-19294 Added boilerplate and phpdocs 2009-05-28 06:32:35 +00:00
wiki mod lib MDL-19294 Added boilerplate and phpdocs 2009-05-28 06:32:35 +00:00
index.html
README.txt MDL-14679 fixed references to mod.html 2008-06-01 19:09:13 +00:00
upgrade.txt MDL-18934 removed legacy grading support 2009-04-22 21:03:38 +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

  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

         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