function radioactivity_field_presave in Radioactivity 7
Same name and namespace in other branches
- 7.2 radioactivity.field.inc \radioactivity_field_presave()
File
- ./
radioactivity.field.inc, line 249
Code
function radioactivity_field_presave($entity_type, $entity, $field, $instance, $langcode, &$items) {
if ($field['type'] == RADIOACTIVITY_FIELD_TYPE) {
foreach ($items as $delta => $item) {
// ensure values
$items[$delta][RADIOACTIVITY_FIELD_TIMESTAMP] = time();
}
}
}