Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
drupal.org
link
Commits
7ebf0baf
Commit
7ebf0baf
authored
Sep 26, 2011
by
Digidog
Browse files
Issue #1264208 by lazysoundsystem, Digidog: Fixed recursive serialization of attributes.
parent
ad738b96
Changes
1
Hide whitespace changes
Inline
Side-by-side
link.module
View file @
7ebf0baf
...
...
@@ -309,7 +309,9 @@ function _link_process(&$item, $delta = 0, $field, $entity) {
}
// Serialize the attributes array.
$item
[
'attributes'
]
=
serialize
(
$item
[
'attributes'
]);
if
(
!
is_string
(
$item
[
'attributes'
]))
{
$item
[
'attributes'
]
=
serialize
(
$item
[
'attributes'
]);
}
// Don't save an invalid default value (e.g. 'http://').
if
((
isset
(
$field
[
'widget'
][
'default_value'
][
$delta
][
'url'
])
&&
$item
[
'url'
]
==
$field
[
'widget'
][
'default_value'
][
$delta
][
'url'
])
...
...
@@ -976,4 +978,4 @@ function link_content_migrate_instance_alter(&$instance_value, $field_value) {
*/
function
link_field_settings_form
()
{
return
array
();
}
\ No newline at end of file
}
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