summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-03-03 07:56:18 +0000
committerDries Buytaert <dries@buytaert.net>2010-03-03 07:56:18 +0000
commit1cb0e254dc0881586dbb1142141debebf933e24b (patch)
treefc5c4e01678e699936805324fde0ef876a6b6714
parent8a8c28acb04967377e0ce957a027ea9a38d30df1 (diff)
downloadbrdo-1cb0e254dc0881586dbb1142141debebf933e24b.tar.gz
brdo-1cb0e254dc0881586dbb1142141debebf933e24b.tar.bz2
- Patch #693054 by yched: field_update_field() called the wrong field storage backend.
-rw-r--r--modules/field/field.crud.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/field/field.crud.inc b/modules/field/field.crud.inc
index 80772279f..7e631f04c 100644
--- a/modules/field/field.crud.inc
+++ b/modules/field/field.crud.inc
@@ -433,7 +433,8 @@ function field_update_field($field) {
// Tell the storage engine to update the field. Do this before
// saving the new definition since it still might fail.
- module_invoke(variable_get('field_storage_default', 'field_sql_storage'), 'field_storage_update_field', $field, $prior_field, $has_data);
+ $storage_type = field_info_storage_types($field['storage']['type']);
+ module_invoke($storage_type['module'], 'field_storage_update_field', $field, $prior_field, $has_data);
// Save the new field definition. @todo: refactor with
// field_create_field.