Skip to content

Commit

Permalink
Added a few code comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sherakama committed May 30, 2016
1 parent c531cfa commit dced029
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion includes/CAPx/Drupal/Processors/EntityProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit dced029

Please sign in to comment.