diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-08-31 06:37:36 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-08-31 06:37:36 +0000 |
commit | a79fa8834243ad4081716bda82982e8097d053dc (patch) | |
tree | 60b98e45f21005e4a5de3983727ff6dfb189cb41 | |
parent | 06619eb763ffcbeb7c2fbf806bca2149479674a9 (diff) | |
download | brdo-a79fa8834243ad4081716bda82982e8097d053dc.tar.gz brdo-a79fa8834243ad4081716bda82982e8097d053dc.tar.bz2 |
- Patch #563992 by plach: missing in hook_field_attach_view_alter and hook_field_attach_form.
-rw-r--r-- | modules/field/field.attach.inc | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |