You are here

function user_uuid_entities_features_export_entity_alter in Universally Unique IDentifier 7

Implements hook_uuid_entities_features_export_entity_alter().

Related topics

File

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

Code

function user_uuid_entities_features_export_entity_alter(&$entity, $entity_type) {
  if ('user' != $entity_type) {
    return;
  }
  foreach (array(
    'data',
    'access',
    'login',
  ) as $property) {
    if (property_exists($entity, $property)) {
      unset($entity->{$property});
    }
  }
}