Drupal – Create a Content Type Programmatically by Features

You can convert the content type which you created manually into a Drupal module using Features. First, download and enable the module.

1. Go to Administer -> Site building -> Features and click Create feature.


2. Fill in the module information.

3. Select your content type as component, the dependent components such as CCK will be colored in blue on the right. So make sure you include all dependencies as components.


4. Click Download feature and you will get the module.

Done =)

Reference: Drupal Module – Features

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.