summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-06-05 12:05:25 +0000
committerDries Buytaert <dries@buytaert.net>2010-06-05 12:05:25 +0000
commitd99623f8a1cc6b2845a40ab1f4cc8f6e57bbd056 (patch)
treebe5c9fee9f4dc17072bc10fa041420aa4d892bb0
parent62a8bf600e261184649b8893943410f55bfc3fba (diff)
downloadbrdo-d99623f8a1cc6b2845a40ab1f4cc8f6e57bbd056.tar.gz
brdo-d99623f8a1cc6b2845a40ab1f4cc8f6e57bbd056.tar.bz2
- Patch #813822 by asimmonds: missing t() function in field_purge_field() causes fatal error.
-rw-r--r--modules/field/field.crud.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/field/field.crud.inc b/modules/field/field.crud.inc
index f49972248..ec018faa1 100644
--- a/modules/field/field.crud.inc
+++ b/modules/field/field.crud.inc
@@ -1144,7 +1144,7 @@ function field_purge_instance($instance) {
function field_purge_field($field) {
$instances = field_read_instances(array('field_id' => $field['id']), array('include_deleted' => 1));
if (count($instances) > 0) {
- throw new FieldException("Attempt to purge a field, @field_name that still has instances.", array('@field_name' => $field['field_name']));
+ throw new FieldException(t('Attempt to purge a field @field_name that still has instances.', array('@field_name' => $field['field_name'])));
}
db_delete('field_config')