summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfago2012-12-25 19:43:04 (GMT)
committer fago2012-12-25 19:43:04 (GMT)
commit4c89c89deb930427cc764848b2e66080dacc4697 (patch)
treea12a2f90872c1f434b51bac48730fd409629a3bf
parentcf6625081db544d8a6afbc7e52c6702dee29a8f5 (diff)
Issue #1829156 by Pierre Paul Lefebvre: Fixed Incorrect parameter passing in entity_metadata_field_get_language().
-rw-r--r--modules/callbacks.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/callbacks.inc b/modules/callbacks.inc
index 1288661..a7df7af 100644
--- a/modules/callbacks.inc
+++ b/modules/callbacks.inc
@@ -484,7 +484,7 @@ function entity_metadata_field_verbatim_get($entity, array $options, $name, $ent
*/
function entity_metadata_field_verbatim_set($entity, $name, $items, $langcode, $entity_type) {
$field = field_info_field($name);
- $langcode = entity_metadata_field_get_language($entity_type, $entity, $entity_type, $langcode);
+ $langcode = entity_metadata_field_get_language($entity_type, $entity, $field, $langcode);
$value = $field['cardinality'] == 1 ? array($items) : (array) $items;
// Filter out any items set to NULL.
$entity->{$name}[$langcode] = array_filter($value);