3rd party module development guidelines

trungie

Joined: 2004-08-24
Posts: 15
Posted: Wed, 2004-08-25 00:55

Hey Guys,

I was thinking of playing around with creating some modules.

My question is, how do I get around testing the installation of the module. That is, after i've installed my module and made some changes, how do i uninstall it to be able to install it again to see my changes & run tests.

Thanks

 
baschny
baschny's picture

Joined: 2003-01-04
Posts: 328
Posted: Wed, 2004-08-25 10:00

Make sure to deactivate the module in the Site Admin module's view. Then you can just rise the version number in your module.inc ($this->setVersion(....)) and you can install the module again in Site Admin. This will call your "install" method again.

Most stuff is done in the "activate" method though, so you normally don't need to uninstall and re-install a module that you are testing. Simply deactivate and activate again.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Thu, 2004-08-26 00:46

What kind of module are you working on?

 
trungie

Joined: 2004-08-24
Posts: 15
Posted: Thu, 2004-08-26 01:26

I was thinking of hacking a few together for experience initially

- easy captionator (so i can caption ~10 images without making 3-4 clicks per image)
- easy rotator (mass rotating, instead of 3-4 clicks per image)
- mms photo acceptance
- automatic windows xp album importer
- photo emailer (send friend's photos)

and on another note: maybe prototype WAP browsing capability for my nokia 3350! mmm!!!

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sat, 2004-08-28 21:35

Those all sound like great module ideas! Let us know how it goes...