Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
drupal.org
field_collection
Commits
71b9e418
Commit
71b9e418
authored
Feb 03, 2021
by
kristofferwiklund
Committed by
Renato Gonçalves H
Feb 03, 2021
Browse files
Issue #3173850 by kristofferwiklund, RenatoG: Alter hook for Field collection diff
parent
685447ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
field_collection.diff.inc
field_collection.diff.inc
+1
-0
No files found.
field_collection.diff.inc
View file @
71b9e418
...
@@ -86,6 +86,7 @@ function field_collection_field_render_revision($item, $context) {
...
@@ -86,6 +86,7 @@ function field_collection_field_render_revision($item, $context) {
if
(
!
empty
(
$new_items
))
{
if
(
!
empty
(
$new_items
))
{
$raw_values
=
$func
(
$new_items
,
$field_context
);
$raw_values
=
$func
(
$new_items
,
$field_context
);
drupal_alter
(
'field_diff_view'
,
$raw_values
,
$new_items
,
$field_context
);
$values
=
array
();
$values
=
array
();
foreach
(
$raw_values
as
$raw_value
)
{
foreach
(
$raw_values
as
$raw_value
)
{
$values
[]
=
is_array
(
$raw_value
)
?
implode
(
', '
,
$raw_value
)
:
$raw_value
;
$values
[]
=
is_array
(
$raw_value
)
?
implode
(
', '
,
$raw_value
)
:
$raw_value
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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