Closed (duplicate)
Project:
Address Field
Version:
7.x-1.0-beta2
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
9 May 2012 at 03:48 UTC
Updated:
2 Nov 2012 at 15:54 UTC
If you are from Argentina, here is the code to add at "address.inc" file.
ISO 3166-2
else if ($address['country'] == 'AR') {
$format['locality_block']['administrative_area']['#options'] = array(
'' => t('-Seleccione una opción-'),
'AR-B' => t('Buenos Aires'),
'AR-K' => t('Catamarca'),
'AR-H' => t('Chaco'),
'AR-U' => t('Chubut'),
'AR-X' => t('Córdoba'),
'AR-W' => t('Corrientes'),
'AR-E' => t('Entre Ríos'),
'AR-P' => t('Formosa'),
'AR-Y' => t('Jujuy'),
'AR-L' => t('La Pampa'),
'AR-F' => t('La Rioja'),
'AR-M' => t('Mendoza'),
'AR-N => t('Misiones'),
'AR-Q' => t('Neuquén'),
'AR-R' => t('Río Negro'),
'AR-A' => t('Salta'),
'AR-J' => t('San Juan'),
'AR-D' => t('San Luis'),
'AR-Z' => t('Santa Cruz'),
'AR-S' => t('Santa Fe'),
'AR-G' => t('Santiago del Estero'),
'AR-V' => t('Tierra del Fuego, Antártida e Islas del Atlántico Sur'),
'AR-T' => t('Tucumán'),
);
$format['locality_block']['administrative_area']['#title'] = t('Provincia');
}
Comments
Comment #1
FAAREIA commentedSorry, there was a missing '. Here it's again
Comment #2
j0rd commentedThis is a duplicate of
#1829900: [meta] Address Field 2.x needs pluggable administrative areas and an actual API
If you think so to, please close your ticket.
Comment #3
FAAREIA commented