By ninetwenty on
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
CCK
Get CCK-module to add new fields into a new content type (..which is added from /admin/content/types/add)
I need to do more than just
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.
handbooks
Also, don't forget the handbook page:
How to create your own simple node type