Using Drupal 7 with Address Field module. How do I get the US state (i.e., the administrative_area) to show as a standard two letter abbreviation rather than the full state name?
What shows now is:
123 Main St Somewhere, Florida 12345
I want the node to show:
123 Main St Somewhere, FL 12345
In address.inc in the addressfield module files, there is a function
addressfield_format_address_generate which defines an '#options' array of all the different states (an associative array with 2-letter state abbreviations as the keys and state names as the values).
In addressfield.module, there is a function
_addressfield_render_address which I believe checks if there is an '#options' defined and if so, tries to get the value for the given key.
So it would seem if I want to change this behavior I somehow need to override