function book_uuid_entities_features_export_entity_alter in Universally Unique IDentifier 7
Implements hook_entity_uuid_load().
Related topics
File
- ./
uuid.core.inc, line 66 - Implementation of UUID hooks for all core modules.
Code
function book_uuid_entities_features_export_entity_alter(&$entity, $entity_type) {
if ($entity_type == 'node') {
if (!empty($entity->book)) {
$entity->book['bid'] = current(entity_get_uuid_by_id($entity_type, array(
$entity->book['bid'],
)));
}
}
}