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
link
Commits
3cfdc184
Commit
3cfdc184
authored
Dec 09, 2015
by
jbolduc
Committed by
John Fiala
Dec 10, 2015
Browse files
UPC-99: Apply patch: link-field_link_validate_overrites_langcode-2632728.patch
parent
66792b8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
link.module
link.module
+0
-1
No files found.
link.module
View file @
3cfdc184
...
...
@@ -420,7 +420,6 @@ function _link_process(&$item, $delta, $field, $entity, $instance) {
function
_link_validate
(
&
$item
,
$delta
,
$field
,
$entity
,
$instance
,
$langcode
,
&
$optional_field_found
,
&
$errors
)
{
if
(
$item
[
'url'
]
&&
!
(
isset
(
$instance
[
'default_value'
][
$delta
][
'url'
])
&&
$item
[
'url'
]
===
$instance
[
'default_value'
][
$delta
][
'url'
]
&&
!
$instance
[
'required'
]))
{
// Validate the link.
$langcode
=
!
empty
(
$entity
)
?
field_language
(
$instance
[
'entity_type'
],
$entity
,
$instance
[
'field_name'
])
:
LANGUAGE_NONE
;
if
(
!
link_validate_url
(
trim
(
$item
[
'url'
]),
$langcode
))
{
$errors
[
$field
[
'field_name'
]][
$langcode
][
$delta
][]
=
array
(
'error'
=>
'link_required'
,
...
...
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