7 Jun
2011
7 Jun
'11
3:49 p.m.
Hi, I use Drupal7, I'm making a module to define a new node type, I need to do it programmatically. I don't know how to define options of a list_text type field. Can you help me? function _mymodule_installed_fields() { $t = get_t(); return array( 'mymodule_fieldname' => array( 'field_name' => 'mymodule_fieldname', 'label' => $t('Field Name'), 'type' => 'list_text', ), ); } Thanks! Adm