function tablefield_field_load in TableField 7.2
Same name and namespace in other branches
- 7.3 tablefield.module \tablefield_field_load()
- 7 tablefield.module \tablefield_field_load()
Implements hook_field_load().
File
- ./
tablefield.module, line 346 - Provides a set of fields that can be used to store tabular data with a node.
Code
function tablefield_field_load($entity_type, $entities, $field, $instances, $langcode, &$items, $age) {
foreach ($entities as $id => $entity) {
foreach ($items[$id] as $delta => $item) {
if (isset($item['value'])) {
$items[$id][$delta]['tabledata'] = unserialize($item['value']);
}
}
}
}