function tablefield_field_prepare_view in TableField 7.2
Same name and namespace in other branches
- 7.3 tablefield.module \tablefield_field_prepare_view()
Implements hook_field_prepare_view().
File
- ./
tablefield.module, line 271 - Provides a set of fields that can be used to store tabular data with a node.
Code
function tablefield_field_prepare_view($entity_type, $entities, $field, $instances, $langcode, &$items) {
// Reset the array's internal pointer to the first element.
$instance = reset($instances);
foreach ($entities as $id => $entity) {
$entity_items =& $items[$id];
tablefield_field_presave($entity_type, $entity, $field, $instance, $langcode, $entity_items);
}
}