From: Jon goldberg Date: Mon, 18 Apr 2016 19:53:04 +0000 (-0400) Subject: Add hook to existing geoprovider classes X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9862d91a85db5ee2dd61b100e794ed171ebb80d8;p=civicrm-core.git Add hook to existing geoprovider classes --- 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?