No need to load the location now that CCK caches it properly.
authorBrandon Bergren
Wed, 25 Feb 2009 17:42:14 +0000 (17:42 +0000)
committerBrandon Bergren
Wed, 25 Feb 2009 17:42:14 +0000 (17:42 +0000)
contrib/location_cck/location_cck.module

index 9a060b6..b21fde3 100644 (file)
@@ -358,7 +358,7 @@ function theme_location_cck_formatter_default($element) {
   }
   else if (isset($location['lid']) && $location['lid']) {
     // "normal" viewing.
-    $location = location_load_location($location['lid']);
+    // Location is already cached by CCK, so no need to load it.
     return theme('location', $location, $hide);
   }
 }