Page 1 of 1

Setting defaults for side vs. center

Posted: 27. May 2012 02:35
by timotheosh
I have a module that I am making it allowable for the admin to set the width and height for the module. I need different defaults for this when the module is being installed on the side than when it is being installed in the center.

If the module is getting installed on the side then the default width is 200 and default height 200, but if it is installing in the center then the default width is 800 and default height 600.

Is there a way knowing which within the install function itself, so I can set the defaults based on where the module gets installed?

Re: Setting defaults for side vs. center

Posted: 27. May 2012 11:24
by Marc
The module data will be added to the database before the install function is ran. Just do a quick sql query for the data of the module. The new module id is being passed to the install function.