Closed (duplicate)
Project:
Address Field
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
8 Nov 2011 at 11:06 UTC
Updated:
2 May 2013 at 03:56 UTC
It may be a stupid question: What is the path to add a new country customization?
I want regions (states) from my country (Romania) to be selectable from a select dropdown and other changes and validations.
Should I create a patch against plugins/format/address.inc? And add there...
else if ($address['country'] == 'RO') {
$format['locality_block']['administrative_area']['#options'] = array(
...
Ughh... Ugly!
I saw the CH example... and I'm confused more now. Patching module or implementing a plugin? Or?
Comments
Comment #1
damien tournoud commentedThe way forward for administrative sub-divisions is #1317070: Use ISO codes XML file for populating country-specific properties.
Comment #2
claudiu.cristeaSorry... still don't get it. It's not implemented yet? Or? I saw that XML... where does it comes in? The only point where I saw sub-divisions was the (ugly) hardcoded address.inc.
This is not "fixed". We need to document a way to implement, not only subdivisions, but also postal codes validations, etc.
Comment #3
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 #4
rszrama commentedBasically, there is no path, that's what Damien was trying to communicate. j0rd's issue is the issue where a complete solution will ultimately be implemented, so I recommend following along there.
Comment #4.0
rszrama commentedUpdated issue summary.