How do I set the options for a programatically created content type? For example, if I want to set 'Publishing options - Promoted to front page' to 0 in a .install file when creating a new content type.

I've looked in the variable table, where I was expecting to see variables for these options, but it's not obvious to me. What am I supposed to set?

Thanks.
You can set a node_options_[type] variable,

e.g:

node_options_article: Array
(
    [0] =&gt; status
    [1] =&gt; promote
)


which can be set with:

// Make my_type nodes published and not promoted to front page by default
variable_set('node_options_my_type', array('status'));