moodle/mod
sam marshall e332d1849d MDL-72643 core: Improve display_size
Allows display_size to use a fixed unit for easy comparison of
multiple results, and fixed decimal places for the same reason.

Improves behaviour by using consistent decimal places and a
consistent space before the unit (the previous one only has a space
before 'bytes', not before 'KB').

Of existing uses, all the ones that displayed a 'maxbytes' type
configuration setting (which are likely to have an 'exact' size
and would be better shown as 512 KB rather than 512.0 KB) have been
changed to use 0 decimal places, to preserve previous behaviour.
All the uses which were showing an actual file or memory size have
been left as default (1 decimal place).
2021-09-27 16:52:33 +01:00
..
assign Merge branch 'MDL-72589' of https://github.com/stronk7/moodle 2021-09-16 09:46:56 +08:00
assignment Merge branch 'MDL-71619' of https://github.com/paulholden/moodle 2021-05-18 22:59:13 +02:00
book MDL-72093 navigation: Update behat tests 2021-09-14 12:02:35 +08:00
chat MDL-72093 navigation: Update behat tests 2021-09-14 12:02:35 +08:00
choice MDL-72093 navigation: Update behat tests 2021-09-14 12:02:35 +08:00
data MDL-72093 navigation: Update behat tests 2021-09-14 12:02:35 +08:00
feedback MDL-72630 feedback: Increase screen size for links just off screen 2021-09-21 15:33:01 +08:00
folder MDL-72179 behat: Make use of page resolvers 2021-07-26 15:14:28 +08:00
forum MDL-72643 core: Improve display_size 2021-09-27 16:52:33 +01:00
glossary MDL-69588 accessibility: Address review points 2021-08-23 17:47:24 +08:00
h5pactivity MDL-72093 navigation: Update behat tests 2021-09-14 12:02:35 +08:00
imscp MDL-72179 behat: Make use of page resolvers 2021-07-26 15:14:28 +08:00
label MDL-72093 navigation: Update behat tests 2021-09-14 12:02:35 +08:00
lesson MDL-72093 navigation: Update behat tests 2021-09-14 12:02:35 +08:00
lti Merge branch 'MDL-69504-master' of https://github.com/snake/moodle 2021-09-07 20:03:45 +02:00
page MDL-72179 behat: Make use of page resolvers 2021-07-26 15:14:28 +08:00
quiz Merge branch 'MDL-72589' of https://github.com/stronk7/moodle 2021-09-16 09:46:56 +08:00
resource MDL-72643 core: Improve display_size 2021-09-27 16:52:33 +01:00
scorm MDL-72093 navigation: Update behat tests 2021-09-14 12:02:35 +08:00
survey MDL-72093 navigation: Update behat tests 2021-09-14 12:02:35 +08:00
url MDL-51165 mod_url: allow directory index url direct access 2021-09-19 12:05:51 +09:30
wiki MDL-71944 mod_wiki: use confirm output API for comment deletion. 2021-08-09 10:41:00 +01:00
workshop MDL-72093 navigation: Update behat tests 2021-09-14 12:02:35 +08:00
index.html
README.txt
upgrade.txt MDL-68645 output: Do not apply filters when creating calendar events 2020-05-13 10:03:01 +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