开发者

Use an exported CCK content type in an install schema of a module

开发者 https://www.devze.com 2023-01-23 03:12 出处:网络
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

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...

0

精彩评论

暂无评论...
验证码 换一张
取 消