Index: default_filter.module =================================================================== --- default_filter.module (revision 384) +++ default_filter.module (working copy) @@ -207,6 +207,20 @@ $type = $form['type']['#value']; $format = default_filter_retrieve($type); + // Process cck text fields. + if (module_exists('content') && module_exists('text')) { + $fields = db_query("SELECT field_name FROM {content_node_field_instance} WHERE type_name = '%s' AND widget_type = '%s'",$type,'text_textarea'); + while($field = db_fetch_object($fields)) { + foreach (element_children($form[$field->field_name]) as $element) { + if (isset($form[$field->field_name][$element]['#default_value']['format'])) { + $form[$field->field_name][$element]['#default_value']['format'] = $format; + } + } + } + } + + + //The following two if statements are the result of an anomaly I never figured //out but needed to code around. My install used "filter" as the key for the //formats, but others' installs used "format". This block looks for each. I've