You are here

function comment_entity_uuid_load in Universally Unique IDentifier 7

Implements hook_entity_uuid_load().

Related topics

File

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

Code

function comment_entity_uuid_load(&$entities, $entity_type) {
  switch ($entity_type) {
    case 'node':
      entity_property_id_to_uuid($entities, 'user', 'last_comment_uid');
      break;
    case 'comment':
      entity_property_id_to_uuid($entities, 'user', array(
        'uid',
        'u_uid',
      ));
      entity_property_id_to_uuid($entities, 'node', 'nid');
      break;
  }
}