Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
drupal.org
link
Commits
ab70f2ac
Commit
ab70f2ac
authored
Jan 14, 2007
by
Nathan Haug
Browse files
Attributes now need to be serialized manually before and after DB retreival. Drupal issue #100386.
parent
cc91389d
Changes
1
Hide whitespace changes
Inline
Side-by-side
link.module
View file @
ab70f2ac
...
...
@@ -98,13 +98,18 @@ function link_field_settings($op, $field) {
*/
function
link_field
(
$op
,
&
$node
,
$field
,
&
$items
,
$teaser
,
$page
)
{
switch
(
$op
)
{
case
'view'
:
foreach
(
$items
as
$delta
=>
$item
)
{
$items
[
$delta
][
'view'
]
=
content_format
(
$field
,
$item
,
'default'
,
$node
);
$items
[
$delta
][
'attributes'
]
=
unserialize
(
$item
[
'attributes'
]);
$items
[
$delta
][
'view'
]
=
content_format
(
$field
,
$items
[
$delta
],
'default'
,
$node
);
}
return
theme
(
'field'
,
$node
,
$field
,
$items
,
$teaser
,
$page
);
break
;
break
;
case
'submit'
:
foreach
(
$items
as
$delta
=>
$item
)
{
$items
[
$delta
][
'attributes'
]
=
serialize
(
$item
[
'attributes'
]);
}
break
;
}
}
...
...
Write
Preview
Supports
Markdown
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