USING THE NEW MODULE TEMPLATE
-----------------------------

1. Unzip the archive and read this file  ;-)

2. Change the name of the directory to your new module name.
   This name should be a single english word, if possible, 
   all lowercase and with only a-z characters. eg widget

3. Edit all the files in this directory and change all the 
   instances of NEWMODULE to your new module name (eg widget).

4. Edit db/mysql and put in the SQL database definitions 
   for your module.  (optional)

5. Visit the admin page and your module should be noticed and
   registered as a new entry in the table "modules".

Now you can start adding code to the .php and .html files in 
this directory to make it do what you want!

Note about database changes:

  Every time you update the database schema in the db directory, 
  remember to also edit version.php with 
  
    - a higher version number
    - an execute_sql() call that upgrades the databases to the
      new format
  
  and then visit the admin page to actually upgrade your databases.


If you have problems, questions, suggestions etc then visit 
the "Activity modules" developers forum in the online 
course called "Using Moodle" at http://moodle.com

Or email me:  martin@dougiamas.com

Cheers!
Martin


