Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It would be nice to get support for Austrian provinces.
Patch attached. Credits for the original version go to tomrenner
Comment | File | Size | Author |
---|---|---|---|
#3 | addressfield_at_provinces_3_1662696.patch | 1.07 KB | a.milkovsky |
Comments
Comment #1
rszrama CreditAttribution: rszrama commentedComment #2
a.milkovskyUpdated the patch using the official ISO 3166-2 codes.
Comment #3
a.milkovskyImproved patch with the #render_option_value option.
Comment #4
bojanz CreditAttribution: bojanz commentedHm, Google's dataset (Android/Chrome) says that states aren't used for mailing in Austria, and the PDF at https://www.post.at/en/personal_send_letter_mail_shipping_advice_address... also has no mention of states.
Am I missing something?
Comment #5
bojanz CreditAttribution: bojanz commentedReopen if you can provide an official source saying states are used for mailing.
Comment #6
fagoStates aren't used for mailing in Austria, still there are plenty of use-cases where people want states in their addresses.
Comment #7
bojanz CreditAttribution: bojanz commentedThey will need to write a custom module that provides a plugin which adds the states then (like https://www.drupal.org/project/addressfield_peru and others do).
The primary use case of this module is postal addresses, so I can't justify adding non-postal data.
Comment #8
fagoWhile it's not necessary nor common in mailings, it's often entered and stored information for postal addresses. If it's about postal addresses, I think it would be great to have support for it in particular as there is already an option. If it's about postal addresses for mailings, it shouldn't included by default though.
Thus, I agree it make sense to not include it but have it as an optional extension. It might make sense to clarify that the module provides / comes with sensible defaults for mailings?
Comment #9
bojanz CreditAttribution: bojanz commentedThe Austrian post office says that no postal address has a state. Whether that address is on an envelope or a form is irrelevant.
You are free to create a contrib module that changes this logic, I'm just following the official recommendation, just like Google is (in Android/Chrome).