This might be useful to others ...
create example.module with the following function.
4 is the number of the default for the book node type (the wiki syntax for example).


function example_form_alter($form_id, &$form) {
    if ($form_id == 'book_node_form') {
      $form['body_filter']['format'] = filter_form(4);
      return $form;
    }
}

hopefully there will be an option soon in the filter UI

Comments

Nat - Parallel-IT’s picture

This is the code that worked in D6 to set the blog node body field to be Full HTML (change the function name to conform to the form id - see http://api.drupal.org/api/function/hook_form_FORM_ID_alter/6):

>
 function example_form_blog_node_form_alter(&$form, &$form_state) {
	$form['body_field']['format'] = filter_form(2); // Full HTML
 }
</
loopduplicate’s picture

I needed the book content type to default to FULL HTML
so I used the above example but changed the word blog
to book like this:

function example_form_book_node_form_alter(&$form, &$form_state) {
    $form['body_field']['format'] = filter_form(2); // Full HTML
}

Thanks for your help, guys. Long live the Drupal community.