From d99623f8a1cc6b2845a40ab1f4cc8f6e57bbd056 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 5 Jun 2010 12:05:25 +0000 Subject: - Patch #813822 by asimmonds: missing t() function in field_purge_field() causes fatal error. --- modules/field/field.crud.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') 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') -- cgit v1.2.3