Reference UUID
Component ID
1777958
Component name
Reference UUID
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Component created
Component changed
Component body
This module provides simple developer functionality - integration between UUID and various reference fields like node_reference, user_reference, entity_reference.
Module implements two hooks hook_entity_load() and hook_entity_presave().
On load hook it loads UUID for every reference field so its available in field data array, i.e.:
field_node_reference => array(
'und' => array(
0 => array(
'nid' => 10,
'uuid' => {uuid-string}
),
),
)
On hook presave it looks for a fields that are containing uuid in reference field and no local system value. If that kind of field is found local value is loaded to proper key so entity is saved with proper local reference.
