If by with php code you mean in a module, you need hook_node_info
http://api.drupal.org/api/function/hook_node_info/6
how to setup the default options, like disable comment, promoted to frontpage?
i mean, with a content type created by me, from php code.
--
----------------------
Aldo Martinez Selleras
Administrador del Nodo
CITMATEL GND Camaguey
Tel: 32-291661
E-mail: aldo@caonao.cu
Linux User #364356