diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-05-25 10:43:54 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-05-25 10:43:54 +0000 |
commit | 76957a25e6eb2ce82fc3f52f6f4f97be4748f6e6 (patch) | |
tree | 1014be2886f06d9c43ee127d1de2fb0e82f6d5e5 /modules/field | |
parent | 12024dbca416e8071dc34fb941e4970c150b0f47 (diff) | |
download | brdo-76957a25e6eb2ce82fc3f52f6f4f97be4748f6e6.tar.gz brdo-76957a25e6eb2ce82fc3f52f6f4f97be4748f6e6.tar.bz2 |
- Patch #470594 by Moshe: convert more pages and blocks to return arrays.
Diffstat (limited to 'modules/field')
-rw-r--r-- | modules/field/field.module | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |