summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-05-31 07:59:27 +0000
committerDries Buytaert <dries@buytaert.net>2010-05-31 07:59:27 +0000
commit78a04881d5f3105eb54a676c42b982bd42aa4a63 (patch)
treeb54487ed89c4a0ff8b82cd0be8295e7bb89d97c6 /modules
parent4e1d58feee1df94d0b64682fdb9225e0043e6c13 (diff)
downloadbrdo-78a04881d5f3105eb54a676c42b982bd42aa4a63.tar.gz
brdo-78a04881d5f3105eb54a676c42b982bd42aa4a63.tar.bz2
- Patch #707724 by TR: call them entities instead of objects.
Diffstat (limited to 'modules')
-rw-r--r--modules/field/field.crud.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/field/field.crud.inc b/modules/field/field.crud.inc
index 4f58cd445..3de0963bf 100644
--- a/modules/field/field.crud.inc
+++ b/modules/field/field.crud.inc
@@ -642,14 +642,14 @@ function field_create_instance($instance) {
}
// Check that the required properties exists.
if (empty($instance['entity_type'])) {
- throw new FieldException(t('Attempt to create an instance of field @field_name without an object type.', array('@field_name' => $instance['field_name'])));
+ throw new FieldException(t('Attempt to create an instance of field @field_name without an entity type.', array('@field_name' => $instance['field_name'])));
}
if (empty($instance['bundle'])) {
throw new FieldException(t('Attempt to create an instance of field @field_name without a bundle.', array('@field_name' => $instance['field_name'])));
}
// Check that the field can be attached to this entity type.
if (!empty($field['entity_types']) && !in_array($instance['entity_type'], $field['entity_types'])) {
- throw new FieldException(t('Attempt to create an instance of field @field_name on forbidden object type @entity_type.', array('@field_name' => $instance['field_name'], '@entity_type' => $instance['entity_type'])));
+ throw new FieldException(t('Attempt to create an instance of field @field_name on forbidden entity type @entity_type.', array('@field_name' => $instance['field_name'], '@entity_type' => $instance['entity_type'])));
}
// Set the field id.