You are here

function file_field_uuid_presave in Universally Unique IDentifier 7

Implements hook_field_uuid_presave().

Related topics

1 call to file_field_uuid_presave()
image_field_uuid_presave in ./uuid.core.inc
Implements hook_field_uuid_presave().

File

./uuid.core.inc, line 343
Implementation of UUID hooks for all core modules.

Code

function file_field_uuid_presave($entity_type, $entity, $field, $instance, $langcode, &$items) {
  entity_property_uuid_to_id($items, 'file', 'fid');
  entity_property_uuid_to_id($items, 'user', 'uid');
}