Use an exported CCK content type in an install schema of a module
I have a content type built by CCK in Drupal 6. If开发者_开发技巧 I export it, I get a php code. How can use this code in my module's hook_install, to have this content types imported when the module is installed?
Check out the modules called features, this out of the box gives you the ability to create modules that can contain entire CCK definitions. Very easy, and little to no custom coding is required
Programatic CCK Now Possible!
Also see other comments there...
精彩评论