Commit ab70f2ac authored by Nathan Haug's avatar Nathan Haug
Browse files

Attributes now need to be serialized manually before and after DB retreival. Drupal issue #100386.

parent cc91389d
......@@ -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);
case 'submit':
foreach ($items as $delta => $item) {
$items[$delta]['attributes'] = serialize($item['attributes']);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment