function uuid_entity_info_alter in Universally Unique IDentifier 7
Implements hook_entity_info_alter().
See also
uuid_core_entity_info()
Related topics
File
- ./
uuid.entity.inc, line 82 - Entity related functions for UUID module.
Code
function uuid_entity_info_alter(&$info) {
foreach (uuid_get_core_entity_info() as $entity_type => $core_info) {
$info[$entity_type]['uuid'] = TRUE;
$info[$entity_type]['entity keys']['uuid'] = $core_info['entity keys']['uuid'];
if (!empty($core_info['entity keys']['revision uuid'])) {
$info[$entity_type]['entity keys']['revision uuid'] = $core_info['entity keys']['revision uuid'];
}
}
}