Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
3588d097
Commit
3588d097
authored
13 years ago
by
Angie Byron
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#1017850
by yched: Improve documentation for field_view_value().
parent
4b5dfbc3
No related branches found
No related tags found
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/field/field.module
+4
-0
4 additions, 0 deletions
modules/field/field.module
with
4 additions
and
0 deletions
modules/field/field.module
+
4
−
0
View file @
3588d097
...
@@ -825,6 +825,8 @@ function field_view_value($entity_type, $entity, $field_name, $item, $display =
...
@@ -825,6 +825,8 @@ function field_view_value($entity_type, $entity, $field_name, $item, $display =
* render($content[FIELD_NAME]) instead.
* render($content[FIELD_NAME]) instead.
* - Do not use to display all fields in an entity, use
* - Do not use to display all fields in an entity, use
* field_attach_prepare_view() and field_attach_view() instead.
* 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
* The function takes care of invoking the prepare_view steps. It also respects
* field access permissions.
* field access permissions.
...
@@ -864,6 +866,8 @@ function field_view_value($entity_type, $entity, $field_name, $item, $display =
...
@@ -864,6 +866,8 @@ function field_view_value($entity_type, $entity, $field_name, $item, $display =
* used.
* used.
* @return
* @return
* A renderable array for the field value.
* A renderable array for the field value.
*
* @see field_view_value()
*/
*/
function
field_view_field
(
$entity_type
,
$entity
,
$field_name
,
$display
=
array
(),
$langcode
=
NULL
)
{
function
field_view_field
(
$entity_type
,
$entity
,
$field_name
,
$display
=
array
(),
$langcode
=
NULL
)
{
$output
=
array
();
$output
=
array
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment