? field_attach_hook-367525-3.patch ? field_attach_hook-367525-7.patch ? trigger_hook_access-324183-6.patch ? trigger_hook_access-324183-8.patch ? sites/default/files ? sites/default/settings.php Index: modules/field/field.api.php =================================================================== RCS file: /cvs/drupal/drupal/modules/field/field.api.php,v retrieving revision 1.8 diff -u -p -r1.8 field.api.php --- modules/field/field.api.php 26 Apr 2009 09:18:20 -0000 1.8 +++ modules/field/field.api.php 4 May 2009 03:51:22 -0000 @@ -586,7 +586,7 @@ function hook_field_attach_delete_revisi * @param $teaser * Whether to display the teaser only, as on the main page. */ -function hook_field_attach_view($output, $obj_type, $object, $teaser) { +function hook_field_attach_view_alter($output, $obj_type, $object, $teaser) { } /** Index: modules/field/field.attach.inc =================================================================== RCS file: /cvs/drupal/drupal/modules/field/field.attach.inc,v retrieving revision 1.13 diff -u -p -r1.13 field.attach.inc --- modules/field/field.attach.inc 1 May 2009 15:28:13 -0000 1.13 +++ modules/field/field.attach.inc 4 May 2009 03:51:22 -0000 @@ -102,7 +102,7 @@ define('FIELD_STORAGE_INSERT', 'insert') * for any object after the operation is complete, and access or * modify all the field, form, or display data for that object and * operation. For example, field_attach_view() invokes - * hook_field_attach_view(). These all-module hooks are distinct from + * hook_field_attach_view_alter(). These all-module hooks are distinct from * those of the Field Types API, such as hook_field_load(), that are * only invoked for the module that defines a specific field type. * @@ -636,10 +636,7 @@ function _field_attach_view($obj_type, & $output = _field_invoke_default('view', $obj_type, $object, $teaser); // Let other modules make changes after rendering the view. - foreach (module_implements('field_attach_view') as $module) { - $function = $module . '_field_attach_view'; - $function($output, $obj_type, $object, $teaser); - } + drupal_alter('field_attach_view', $output, $obj_type, $object, $teaser); return $output;