This project is read-only.

Best practice to automatically add widget on the website when installing/upgrading a module

Topics: Writing modules
Feb 7, 2012 at 5:53 AM

I would like to automatically add a widget to the website when I install/update a module.

Is it best to add a recipe for the module? Or should I add code in the migration file?


Feb 7, 2012 at 5:57 AM

I'd do a recipe as it gives the choice to the user to run it or not.