default settings for new content type
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
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 On Mon, Jan 5, 2009 at 12:54 PM, Aldo Martinez Selleras <aldo@caonao.cu>wrote:
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
-- Jim Taylor Rooty Hollow LLC, Owner jim@rootyhollow.com www.rootyhollow.com (614) 886-5530
there is how to define some properties for node type, but i don't see where to include other parameters, like comment and publish options i have seen some place define this with variable_set() function but i'm not sure if that is the way to do that. -- ---------------------- Aldo Martinez Selleras Administrador del Nodo CITMATEL GND Camaguey Tel: 32-291661 E-mail: aldo@caonao.cu Linux User #364356
variable_set() is the way to do that. Have a look at the core default.profile for a decent example. http://cvs.drupal.org/viewvc.py/drupal/drupal/profiles/default/default.profi... --Larry Garfield On Mon, 5 Jan 2009 14:13:20 -0500, Aldo Martinez Selleras <aldo@caonao.cu> wrote:
there is how to define some properties for node type, but i don't see where to include other parameters, like comment and publish options
i have seen some place define this with variable_set() function but i'm not sure if that is the way to do that.
-- ---------------------- Aldo Martinez Selleras Administrador del Nodo CITMATEL GND Camaguey Tel: 32-291661 E-mail: aldo@caonao.cu Linux User #364356
and what i must to do?? create a .profile for my content type??? or can i use de variable_set() function in my .module ??? -- ---------------------- Aldo Martinez Selleras Administrador del Nodo CITMATEL GND Camaguey Tel: 32-291661 E-mail: aldo@caonao.cu Linux User #364356
participants (3)
-
Aldo Martinez Selleras -
Jim Taylor -
Larry Garfield