I have previously created a number of custom content types in Drupal 4.6, but now I want to try it with 5.x. I found this page http://drupal.org/node/132845 that has this to say about it:

In previous examples "How to create your own simple node type (from story node) (4.7) and (4.6) the "story.module" file was copied as a starting point, but that module no longer exists because of how Drupal 5.x handles node-types (content types), so this example will require you to start with a new file.

I'm wondering why they don't just provide a fully functional example module that I can hack, and reference the API documentation where I want it to do something different. Can anyone let me see a complete working .module file with all the necessary hooks and everything in place?

I don't like trying to build things from scratch based on theory when I could just follow an example and figure out the theoretical stuff as I go along.

Comments

emjayess’s picture

--
Matthew J. Sorenson (emjayess)
d.o. | g.d.o.

ekitel’s picture

thanks! I didn't even see the 'View Source' tab, sometimes the things that are right in front of your face are the hardest to find

nevets’s picture

You may also want to check out the Content Contstruction Kit (CCK) module which allows you to construct custom types without coding. Paired with the views module the two provide a lot of the needs for custom content types.