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?
Asked
Active
Viewed 163 times
2 Answers
2
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

wiifm
- 3,787
- 1
- 21
- 23
-
But with that, I would have a features dependency, am I right? – mimrock Nov 04 '10 at 09:53
-
Nope, features just automates the creation of your custom module. Saves any coding by hand. Give it a go ;) – wiifm Nov 04 '10 at 20:04
-
As far as I know, you can't rid of the features dependency, if you export your content types as features. Apart from that, that seems to be a very simple and easy solution indeed, thanks for your answer too! – mimrock Nov 05 '10 at 14:39