George, I don't think resurrecting a 6 year old thread is a good place to start. Take a look at http://docs.moodle.org/dev and then, if that does help you, come back to the forums and start a new thread outlining where exactly you are stuck.
General developer forum
Important! insert_record() changes
Hierdie bespreking is gesluit, dus kan jy nie meer daarop antwoord nie.