As we start to make an activity module, it's important to note that activity modules are inherently more complex than both blocks and filters. An activity module has roughly ten required PHP files, over a dozen functions, three sub folders, and an icon graphic. This is in sharp contrast to the other module types that we created in earlier chapters. Following is a listing of the structure of an empty activity module. We will flesh out each component of the listing as we progress through the chapter:
./README.txt
./lib.php
./restorelib.php
./lang
./lang/en_utf8
./lang/en_utf8/foo.php
./lang/en_utf8/help
./lang/en_utf8/help/newmodule
./lang/en_utf8/help/newmodule/index.html
./lang/en_utf8/help/newmodule/mods.html
./version.php
./mod_form.php
./backuplib.php
./submit_form.php
./view.php
./icon.gif
./index.php
./db
./db/access.php
./db/upgrade.php
./db/install.xml
See http://docs.moodle.org/en/Development:Modules for the official...