SproutCMS

This is the code documentation for the SproutCMS project

function nonNumericStates()

Organises the state list so that it doesn't have numeric keys.

The state names become the form field values if state list is a numeric array.
This makes it easy to configure a new locate with states/provinces/etc which don't have standard abbreviations.

E.g. ['State 1', 'State 2'] would become: ['State 1' => 'State 1', 'State 2' => 'State 2']

Usage

array $LocaleInfo->nonNumericStates ( );

Return value

  • array