Révision f066bdb5
Ajouté par Assos Assos il y a plus de 9 ans
drupal7/sites/all/modules/addressfield/addressfield.devel_generate.inc | ||
---|---|---|
45 | 45 |
if (is_resource($handle)) { |
46 | 46 |
$addresses = array(); |
47 | 47 |
while (($buffer = fgets($handle)) !== false) { |
48 |
list($country, $administrative_area, $sub_administrative_area, $locality, $dependent_locality, $postal_code, $thoroughfare, $premise) = explode("\t", $buffer); |
|
48 |
list($country, $administrative_area, $sub_administrative_area, $locality, $dependent_locality, $postal_code, $thoroughfare, $premise, $sub_premise) = explode("\t", $buffer);
|
|
49 | 49 |
$fields[] = array( |
50 | 50 |
'country' => ($country == 'NULL') ? NULL : trim($country), |
51 | 51 |
'administrative_area' => ($administrative_area == 'NULL') ? NULL : trim($administrative_area), |
... | ... | |
55 | 55 |
'postal_code' => ($postal_code == 'NULL') ? NULL : trim($postal_code), |
56 | 56 |
'thoroughfare' => ($thoroughfare == 'NULL') ? NULL : trim($thoroughfare), |
57 | 57 |
'premise' => ($premise == 'NULL') ? NULL : trim($premise), |
58 |
'sub_premise' => ($sub_premise == 'NULL') ? NULL : trim($sub_premise), |
|
58 | 59 |
); |
59 | 60 |
} |
60 | 61 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules