thrownewFieldException(t('Attempt to create an instance of field @field_name on forbidden object type @obj_type.',array('@field_name'=>$instance['field_name'],'@obj_type'=>$instance['object_type'])));
}
...
...
@@ -632,7 +632,7 @@ function field_create_instance($instance) {
// TODO: Check that the widget type is known and can handle the field type ?
// TODO: Check that the formatters are known and can handle the field type ?
// TODO: Check that the display view modes are known for the object type ?
// TODO: Check that the display view modes are known for the entity type ?
// Those checks should probably happen in _field_write_instance() ?
// Problem : this would mean that a UI module cannot update an instance with a disabled formatter.
...
...
@@ -787,7 +787,7 @@ function _field_write_instance($instance, $update = FALSE) {
* field_read_instances() instead for this purpose.