+ if($fields_ret['address']) {
+ $entry['address'] = array();
+
+ // Deactivated. It just reveals too much data. (Although its from the default profile)
+ //if (isset($rr['paddress']))
+ // $entry['address']['streetAddress'] = $rr['paddress'];
+
+ if (isset($rr['plocation']))
+ $entry['address']['locality'] = $rr['plocation'];
+
+ if (isset($rr['pregion']))
+ $entry['address']['region'] = $rr['pregion'];
+
+ // See above
+ //if (isset($rr['ppostalcode']))
+ // $entry['address']['postalCode'] = $rr['ppostalcode'];
+
+ if (isset($rr['pcountry']))
+ $entry['address']['country'] = $rr['pcountry'];
+ }