| | |
| | | //'work_address_2' => '', |
| | | 'work_country' => 'country:work', |
| | | 'work_zipcode' => 'zipcode:work', |
| | | 'last' => 'surname', |
| | | 'first' => 'firstname', |
| | | 'work_city' => 'locality:work', |
| | | 'work_state' => 'region:work', |
| | | 'home_city_short' => 'locality:home', |
| | | 'home_state_short' => 'region:home', |
| | | ); |
| | | |
| | | /** |
| | |
| | | } |
| | | } |
| | | |
| | | // Convert address(es) to rcube_vcard data |
| | | foreach ($contact as $idx => $value) { |
| | | $name = explode(':', $idx); |
| | | if (in_array($name[0], array('street', 'locality', 'region', 'zipcode', 'country'))) { |
| | | $contact['address:'.$name[1]][$name[0]] = $value; |
| | | unset($contact[$idx]); |
| | | } |
| | | } |
| | | |
| | | // Create vcard object |
| | | $vcard = new rcube_vcard(); |
| | | foreach ($contact as $name => $value) { |