By munga on
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
And for Drupal 6
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):
Awesome! Modified for Book nodes
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:
Thanks for your help, guys. Long live the Drupal community.