Several questions here,

Assumption: I only care about publically viewable content types, like pages/blogs/stories/articles/whatever. "Documents".

drupal docs say all content types are nodes. Is this a guaranty?
If it is, this should imply that the unique ID of any given content type is the node ID. Is this safe?
If it's NOT safe, is there a way for my module to figure out the unique ID of a content type generically?

Thanks for your help

Edited by WorldFallz - moved to appropriate forum.

Comments

tom_buytaert’s picture

Yes.

pages, blogs, stories, webforms,.. are all nodes, and they all have a unique node-ID.

So the node ID's would be if you would create:
page 1 -> node/1
page 2 -> node/2
blogpost 1 -> node/3
story 1 -> node/4
blogpost 2 -> node/5

v0idnull’s picture

Thank you for your reply. This will make my life a lot easier.