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
2359a830
Commit
2359a830
authored
Mar 29, 2019
by
Ra Mänd
Browse files
Remove redundant parentheses.
parent
77f3d701
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
field_collection.diff.inc
field_collection.diff.inc
+1
-1
field_collection.module
field_collection.module
+2
-2
No files found.
field_collection.diff.inc
View file @
2359a830
...
...
@@ -40,7 +40,7 @@ function field_collection_field_render_revision($item, $context) {
$field_context
[
'custom_settings'
]
=
FALSE
;
}
$view_mode_settings
=
field_view_mode_settings
(
$entity_type
,
$bundle_name
);
$actual_mode
=
(
!
empty
(
$view_mode_settings
[
$view_mode
][
'custom_settings'
])
)
?
$view_mode
:
'default'
;
$actual_mode
=
!
empty
(
$view_mode_settings
[
$view_mode
][
'custom_settings'
])
?
$view_mode
:
'default'
;
if
(
!
isset
(
$field_context
[
'custom_settings'
]))
{
$field_context
[
'custom_settings'
]
=
$actual_mode
&&
$actual_mode
==
$view_mode
;
}
...
...
field_collection.module
View file @
2359a830
...
...
@@ -1553,7 +1553,7 @@ function field_collection_field_get_entity(&$item, $field_name = NULL) {
// If $item contains more thing than 'entity', then it is sent from VBO.
// We clone the object to avoid that the same field collection item of the
// faked object is attached to multiple host objects.
return
clone
(
$item
[
'entity'
]
)
;
return
clone
$item
[
'entity'
];
}
return
$item
[
'entity'
];
}
...
...
@@ -2104,7 +2104,7 @@ function field_collection_feeds_processor_targets_alter(&$targets, $entity_type,
$files
=
drupal_system_listing
(
'/.*\.inc$/'
,
$path
,
'name'
,
0
);
foreach
(
$files
as
$file
)
{
if
(
strpos
(
$file
->
uri
,
'/mappers/'
)
!==
FALSE
)
{
require_once
(
DRUPAL_ROOT
.
'/'
.
$file
->
uri
)
;
require_once
DRUPAL_ROOT
.
'/'
.
$file
->
uri
;
}
}
}
...
...
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