|
@@ -293,6 +293,14 @@ function tripal_chado_field_storage_load($entity_type, $entities, $age,
|
|
|
if ($schema['fields'][$field_column]['type'] == 'text') {
|
|
|
$record = chado_expand_var($record, 'field', "$field_table.$field_column");
|
|
|
$entity->{$field_name}['und'][0]['value'] = $record->$field_column;
|
|
|
+ // Text fields that have a text_processing == 1 setting need a
|
|
|
+ // special 'format' element too:
|
|
|
+ if (array(key_exists('text_processing', $instance['settings']) and
|
|
|
+ $instance['settings']['text_processing'] == 1)) {
|
|
|
+ // TODO: we need a way to write the format back to the
|
|
|
+ // instance settings if the user changes it when using the form.
|
|
|
+ $entity->{$field_name}['und'][0]['format'] = array_key_exists('format', $instance['settings']) ? $instance['settings']['format'] : 'full_html';
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|