From 9862d91a85db5ee2dd61b100e794ed171ebb80d8 Mon Sep 17 00:00:00 2001 From: Jon goldberg Date: Mon, 18 Apr 2016 15:53:04 -0400 Subject: [PATCH] Add hook to existing geoprovider classes --- CRM/Utils/Geocode/Google.php | 1 + CRM/Utils/Geocode/Yahoo.php | 1 + 2 files changed, 2 insertions(+) diff --git a/CRM/Utils/Geocode/Google.php b/CRM/Utils/Geocode/Google.php index a35314d45f..6d4186f53b 100644 --- a/CRM/Utils/Geocode/Google.php +++ b/CRM/Utils/Geocode/Google.php @@ -124,6 +124,7 @@ class CRM_Utils_Geocode_Google { libxml_use_internal_errors(TRUE); $xml = @simplexml_load_string($string); + CRM_Utils_Hook::geocoderFormat('Google', $values, $xml); if ($xml === FALSE) { // account blocked maybe? CRM_Core_Error::debug_var('Geocoding failed. Message from Google:', $string); diff --git a/CRM/Utils/Geocode/Yahoo.php b/CRM/Utils/Geocode/Yahoo.php index d5f8b68174..5ffcc8df74 100644 --- a/CRM/Utils/Geocode/Yahoo.php +++ b/CRM/Utils/Geocode/Yahoo.php @@ -128,6 +128,7 @@ class CRM_Utils_Geocode_Yahoo { $string = $request->getResponseBody(); // see CRM-11359 for why we suppress errors with @ $xml = @simplexml_load_string($string); + CRM_Utils_Hook::geocoderFormat('Yahoo', $values, $xml); if ($xml === FALSE) { // account blocked maybe? -- 2.25.1