From 76957a25e6eb2ce82fc3f52f6f4f97be4748f6e6 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 25 May 2009 10:43:54 +0000 Subject: - Patch #470594 by Moshe: convert more pages and blocks to return arrays. --- modules/field/field.module | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/field') diff --git a/modules/field/field.module b/modules/field/field.module index 411a05317..11795afa1 100644 --- a/modules/field/field.module +++ b/modules/field/field.module @@ -453,7 +453,7 @@ function field_format($obj_type, $object, $field, $item, $formatter_name = NULL, } /** - * Render a single field, fully themed with label and multiple values. + * Return a single field, fully themed with label and multiple values. * * To be used by third-party code (Views, Panels...) that needs to output * an isolated field. Do *not* use inside node templates, use the @@ -494,8 +494,8 @@ function field_view_field($obj_type, $object, $field, $instance, $teaser = FALSE // TODO : what about hook_field_attach_view ? // field_default_view() adds a wrapper to handle variables and 'excluded' - // fields for node templates. We bypass it and render the actual field. - $output = drupal_render($view[$field['field_name']]['field']); + // fields for node templates. We bypass it and return the actual field. + $output = $view[$field['field_name']]['field']; } return $output; } -- cgit v1.2.3