From 96afd7f538ab05a6d2cafdc0bcf2895654fd8a6a Mon Sep 17 00:00:00 2001
From: Bram Goffings <bramgoffings@gmail.com>
Date: Tue, 26 Jun 2012 22:52:26 +0200
Subject: [PATCH] reverted path changes

---
 uuid.core.inc |   46 ----------------------------------------------
 uuid.test     |    6 ------
 2 files changed, 0 insertions(+), 52 deletions(-)

diff --git a/uuid.core.inc b/uuid.core.inc
index e2eccab..69b522a 100644
--- a/uuid.core.inc
+++ b/uuid.core.inc
@@ -137,52 +137,6 @@ function file_entity_uuid_presave(&$entity, $entity_type) {
 }
 
 /**
- * Load path data to entity object for includesion in export.
- */
-function path_entity_uuid_load($entities, $entity_type) {
-  if ($entity_type == 'node') {
-    foreach ($entities as $node) {
-      $sources[] = 'node/' . $node->nid;
-    }
-
-    $result = db_select('url_alias')
-      ->fields('url_alias', array('source', 'alias'))
-      ->condition('source', $sources)
-      ->execute()
-      ->fetchAllKeyed();
-
-    foreach ($result as $source => $alias) {
-      $nid = str_replace('node/', '', $source);
-      $entities[$nid]->path['alias'] = $alias;
-      $entities[$nid]->path['pathauto'] = FALSE;
-      unset($entities[$nid]->path['pid']);
-      unset($entities[$nid]->path['source']);
-      unset($entities[$nid]->path['language']);
-    }
-  }
-  elseif ($entity_type == 'taxonomy_term') {
-    foreach ($entities as $term) {
-      $sources[] = 'taxonomy/term/' . $term->tid;
-    }
-
-    $result = db_select('url_alias')
-      ->fields('url_alias', array('source', 'alias'))
-      ->condition('source', $sources)
-      ->execute()
-      ->fetchAllKeyed();
-
-    foreach ($result as $source => $alias) {
-      $tid = str_replace('taxonomy/term/', '', $source);
-      $entities[$tid]->path['alias'] = $alias;
-      $entities[$tid]->path['pathauto'] = FALSE;
-      unset($entities[$tid]->path['pid']);
-      unset($entities[$tid]->path['source']);
-      unset($entities[$tid]->path['language']);
-    }
-  }
-}
-
-/**
  * Implements hook_entity_uuid_load().
  */
 function taxonomy_entity_uuid_load(&$entities, $entity_type) {
diff --git a/uuid.test b/uuid.test
index 5a09114..b6407b6 100644
--- a/uuid.test
+++ b/uuid.test
@@ -622,12 +622,6 @@ class UUIDImportEntitiesTestCase extends UUIDTestCase {
     $node2 = $this->getEntityByUuid('node', $this->node2_uuid);
     $user1 = $this->getEntityByUuid('user', $this->user1_uuid);
 
-    $this->drupalGet('term/foo');
-    $this->assertResponse(200, 'Taxonomy term\'s url alias works.');
-
-    $this->drupalGet('lorem-ipsum');
-    $this->assertResponse(200, 'Node\' url alias works.');
-
     // Ensure that our entities was created.
     $this->assertEqual($term1->uuid, $this->term1_uuid, 'Term 1 was created.');
     $this->assertEqual($term2->uuid, $this->term2_uuid, 'Term 2 was created.');
-- 
1.7.4.msysgit.0

