Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
3588d097
Commit
3588d097
authored
Jun 04, 2011
by
Angie Byron
Browse files
Issue
#1017850
by yched: Improve documentation for field_view_value().
parent
4b5dfbc3
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/field/field.module
View file @
3588d097
...
...
@@ -825,6 +825,8 @@ function field_view_value($entity_type, $entity, $field_name, $item, $display =
* render($content[FIELD_NAME]) instead.
* - Do not use to display all fields in an entity, use
* field_attach_prepare_view() and field_attach_view() instead.
* - The field_view_value() function can be used to output a single formatted
* field value, without label or wrapping field markup.
*
* The function takes care of invoking the prepare_view steps. It also respects
* field access permissions.
...
...
@@ -864,6 +866,8 @@ function field_view_value($entity_type, $entity, $field_name, $item, $display =
* used.
* @return
* A renderable array for the field value.
*
* @see field_view_value()
*/
function
field_view_field
(
$entity_type
,
$entity
,
$field_name
,
$display
=
array
(),
$langcode
=
NULL
)
{
$output
=
array
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment