function tablefield_field_load in TableField 7
Same name and namespace in other branches
- 7.3 tablefield.module \tablefield_field_load()
- 7.2 tablefield.module \tablefield_field_load()
Implements hook_field_load().
File
- ./
tablefield.module, line 119 - This module provides a set of fields that can be used to store tabular data with a node. The implementation uses a custom CCK widget.
Code
function tablefield_field_load($entity_type, $entities, $field, $instances, $langcode, &$items, $age) {
foreach ($items as $delta => $table) {
if (isset($table[0]['value'])) {
$items[$delta][0]['tabledata'] = tablefield_rationalize_table(unserialize($table[0]['value']));
}
}
}