Specifying text format when creating field on custom node type I have a module that's creating a custom node type. I'm attaching a textarea to this node type. Currently it works, but the text formatting defaults to "Plain Text."

I would like to specify during installation that the field should be set to "Filtered Text," specifically, "Filtered HTML." This seems like something that should be possible when defining the instance of the field, but it's not working.

Here's the instance definition as it stands now:

&lt;?php
// ...more fields above
    'release_notes' =&gt; array(
      'field_name' =&gt; 'release_notes',
      'type' =&gt; 'text_long',
      'label'  =&gt; $t('Notes'),
      'description'  =&gt; $t('Release notes (e.g. liner notes)'),
      'widget' =&gt; array('type' =&gt; 'text_textarea'),
      'settings' =&gt; array('text_processing ' =&gt; '1'), // Filtered HTML...?
      'weight' =&gt; 9,
    ),
// ...more fields below
?&gt;


Does anyone have any ideas?

Thanks.
Set the 'format' =&gt; 'filtered_html' to allow filtered html

&lt;?php
    // ...more fields above
        'release_notes' =&gt; array(
          'field_name' =&gt; 'release_notes',
          'type' =&gt; 'text_long',
          'label'  =&gt; $t('Notes'),
          'description'  =&gt; $t('Release notes (e.g. liner notes)'),
          'widget' =&gt; array('type' =&gt; 'text_textarea'),
          'settings' =&gt; array('text_processing ' =&gt; '1'), // Filtered HTML...?
          'format' =&gt; 'filtered_html' // &lt;&lt;--- Set this value to allow filtered HTML
          'weight' =&gt; 9,
        ),
    // ...more fields below
    ?&gt;