Index: sites/all/modules/location_facets/location_facets.module =================================================================== --- sites/all/modules/custom/location_facets/location_facets.module (revision 34) +++ sites/all/modules/custom/location_facets/location_facets.module (working copy) @@ -22,16 +22,18 @@ $partsCount = count($locationParts); $categories = array(); switch ($partsCount) { + case 3: + $categories[] = new location_facets_category($locationParts[0], $locationParts[1], $locationParts[2]); case 2: $categories[] = new location_facet_category($locationParts[0], $locationParts[1]); // intentionally no break here! case 1: $categories[] = new location_facet_category($locationParts[0]); break; } $facets[] = new location_facet(array_reverse($categories)); $arg = faceted_search_quoted_query_insert($arg, 'location'); } @@ -43,14 +45,14 @@ case 'node': if (!isset($selection) || isset($selection['location'][1])) { $locations = location_load_locations($arg->vid); - foreach ($locations as $location) { $category = new location_facet_category($location->city); $facets[] = new location_facet(array($category)); + $category = new location_facets_category($location->province); } } break; default: } -} \ No newline at end of file +}