By archatas on
Is anywhere a tutorial on creating a module which will add a few content types at once? If not, can somebody write an example, give some hints or suggest to look at some existing modules for reference?
Is anywhere a tutorial on creating a module which will add a few content types at once? If not, can somebody write an example, give some hints or suggest to look at some existing modules for reference?
Comments
One can do what you want but
One can do what you want but from practical experience I think you are better off writing one module per content type and making them dependent (if needed) as it simplifies editing and you gain nothing by placing them all in one module
Sometimes it's just better to have one module
When those content types are very closely bounded that they cannot be used separately, I would rather choose to create them under the same module. For example, taxonomies and terms also don't make sense when used separately.
-----
Aidas Bendoraitis aka Archatas
http://hyperlocal.org