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


Attachment: signature.asc
Description: Questa รจ una parte del messaggio firmata digitalmente

Reply via email to