diff --git a/includes/CAPx/Drupal/Importer/Orphans/EntityImporterOrphans.php b/includes/CAPx/Drupal/Importer/Orphans/EntityImporterOrphans.php index d33fca72..f453e7a2 100644 --- a/includes/CAPx/Drupal/Importer/Orphans/EntityImporterOrphans.php +++ b/includes/CAPx/Drupal/Importer/Orphans/EntityImporterOrphans.php @@ -356,16 +356,16 @@ protected function processMultipleImporterOrphans($entityIds) { $profile = entity_metadata_wrapper($entityType, $entity[$entityId]); switch ($action) { + // Any entity can be deleted. case 'delete': $profile->delete(); break; + // Users and nodes can have their status set to 0. case 'block': case 'unpublish': $profile->status->set(0); $profile->save(); - - // Log that this profile was orphaned. $this->logOrphan($profile); break; diff --git a/includes/CAPx/Drupal/Processors/EntityProcessor.php b/includes/CAPx/Drupal/Processors/EntityProcessor.php index 8234a87f..f40d64cc 100644 --- a/includes/CAPx/Drupal/Processors/EntityProcessor.php +++ b/includes/CAPx/Drupal/Processors/EntityProcessor.php @@ -318,7 +318,7 @@ public function updateEntity($entity, $data, $mapper) { * @param object $mapper * The EntityMapper instance * @param mixed $guuid - * The + * The genuine unique id for this entity of other than profileId. * * @return object * The new entity after it has been saved.