From a79fa8834243ad4081716bda82982e8097d053dc Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 31 Aug 2009 06:37:36 +0000 Subject: - Patch #563992 by plach: missing in hook_field_attach_view_alter and hook_field_attach_form. --- modules/field/field.attach.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/field/field.attach.inc') diff --git a/modules/field/field.attach.inc b/modules/field/field.attach.inc index 3061105c2..1cdd3b0c2 100644 --- a/modules/field/field.attach.inc +++ b/modules/field/field.attach.inc @@ -497,7 +497,7 @@ function field_attach_form($obj_type, $object, &$form, &$form_state, $langcode = // Let other modules make changes to the form. foreach (module_implements('field_attach_form') as $module) { $function = $module . '_field_attach_form'; - $function($obj_type, $object, $form, $form_state); + $function($obj_type, $object, $form, $form_state, $langcode); } } @@ -1095,7 +1095,7 @@ function field_attach_view($obj_type, $object, $build_mode = 'full', $langcode = $output['#extra_fields'] = field_extra_fields($bundle); // Let other modules make changes after rendering the view. - drupal_alter('field_attach_view', $output, $obj_type, $object, $build_mode); + drupal_alter('field_attach_view', $output, $obj_type, $object, $build_mode, $langcode); return $output; } -- cgit v1.2.3