function user_uuid_entity_features_export_render_alter in UUID Features Integration 7
Implements hook_uuid_entity_features_export_render_alter().
File
- includes/modules/ user.inc, line 10 
- uuid features hooks on behalf of the user collection module.
Code
function user_uuid_entity_features_export_render_alter($entity_type, $export, $entity, $module) {
  if (isset($entity->uid) && isset($export->uid)) {
    $uuids = entity_get_uuid_by_id('user', array(
      $entity->uid,
    ));
    $uuid = reset($uuids);
    if ($uuid) {
      $export->user_uuid = $uuid;
    }
    unset($export->uid);
    if ($entity_type == 'node') {
      // Ensure we don't export the name or uid property which could lead to a
      // user override due to the handling in node_submit().
      unset($export->name);
      // Remove other properties handled solely by user module.
      unset($export->data, $export->picture);
    }
  }
}