Community

How export code structure of node? (for hook_install())

I believe I've seen this functionality before but I can't find it.

I've created a few nodes using Add content Type (admin/structure/types/add) and I would like to export the defining code so that I can import those same structures into other implementations using hook_install();

Is there a module that does this? Looking for something similar to the DB Structure code exported by the Schema Module. I think I've seen it before, but I can't remember where.

thanks,

Comments

Sounds like Features.

Sounds like Features. It can export your content types (and much more) as a ready-to-use module.

just tried it

Exactly what I needed. Thanks for the advice!

-------------
The main man of Set Sail's Daycare Management Software :)

Actually, not so perfect

Features WILL export a new content type (node) beautifully... as long as it does not exist on the target system.
If you attempt to UPDATE a content type, you will get an SQL error.

had been wondering about that

I had wondered about that -- hopefully I have my nodes set for a while.

-------------
The main man of Set Sail's Daycare Management Software :)