function _link_load in Link 6.2
Same name and namespace in other branches
- 6 link.module \_link_load()
- 7 link.module \_link_load()
@file Helper functions for Link field, widget and form elements.
1 call to _link_load()
- link_field in ./
link.module - Implementation of hook_field().
File
- ./
link.inc, line 8 - Helper functions for Link field, widget and form elements.
Code
function _link_load($field, &$items) {
foreach ($items as $delta => $item) {
// Unserialize the attributes array.
$items[$delta]['attributes'] = unserialize($item['attributes']);
}
return array(
$field['field_name'] => $items,
);
}