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.
When importing addresses to address field and the administrative area is in full name the importing fails because it's only take short abbreviation for administrative area (state).
I created a plugin which convert the full name into short abbreviation.
Ex: short abbreviation for Dubai is DU and for New York is NY ....
The plugin convert all administrative area that exist in address field module.
Comment | File | Size | Author |
---|---|---|---|
#4 | administrative_area_to_abbreviation-2612496-4.patch | 27.04 KB | Anas_maw |
#2 | administrative_area_to_abbreviation-2612496-2.patch | 27.02 KB | Anas_maw |
Comments
Comment #2
Anas_maw CreditAttribution: Anas_maw at Vardot commentedComment #3
Anas_maw CreditAttribution: Anas_maw at Vardot commentedComment #4
Anas_maw CreditAttribution: Anas_maw at Vardot commentedSmall change on patch to return 'not valid abbreviation' instead of empty string.
Comment #5
mtoscano CreditAttribution: mtoscano commentedGreat man! Works perfectly and saved me a long time