Lifecycle Methods
Module Development (Form Tools 3)
If you need to perform special actions when the module is installed, uninstalled or upgraded, you'll need to add these methods to your Module class. They will be automatically called at the appropriate time by the core script.
All three methods are optional. For simple modules, you may find you don't need them.