I'm trying to work out how to create a new content type from within a module in Drupal 5. I was wondering if this had changed from 4.7 due to the new create content type feature. Is there an API or do I just insert a new entry into the node_type table?

Comments

tormu’s picture

Get CCK-module to add new fields into a new content type (..which is added from /admin/content/types/add)

ninetwenty’s picture

I need to do more than just add extra fields which is why I'm writing it as a module and not using CCK. I've figured out what I need - I found the updated example on the Drupal API site.

wmostrey’s picture

Also, don't forget the handbook page:

How to create your own simple node type