Add hook to existing geoprovider classes
authorJon goldberg <jon@palantetech.coop>
Mon, 18 Apr 2016 19:53:04 +0000 (15:53 -0400)
committerJon goldberg <jon@palantetech.coop>
Mon, 18 Apr 2016 19:53:04 +0000 (15:53 -0400)
CRM/Utils/Geocode/Google.php
CRM/Utils/Geocode/Yahoo.php

index a35314d45ff2302d3d0d3bf89eb01c246e0d470a..6d4186f53b8f124b6bf145786f876b5322a19b7e 100644 (file)
@@ -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);
index d5f8b681745f94b42ca8e73c2dca4a2dee72bc75..5ffcc8df74824ca55f8e937debe33f0ae920cbaa 100644 (file)
@@ -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?