Currently in my /etc/system.xml file I can use this to pull through a complete list of regions that are stored in Magento and display them as a multiselect. This works fine, however I would prefer to only pull through the regions for one country, e.g. the UK counties or US states:

```
                    <counties translate="label">
                        <label>Counties</label>
                        <frontend_type>multiselect</frontend_type>
                        <sort_order>10</sort_order>
                        <source_model>adminhtml/system_config_source_allregion</source_model>
                        <show_in_default>1</show_in_default>
                        <show_in_website>1</show_in_website>
                        <show_in_store>1</show_in_store>
                    </counties>

```

The reason for this is that I have added a lot of regions/states/counties on the system and it is now not a very user friendly multi-select box.

### UPDATE:

After not immediately acting on the solutions provided below I revisited this problem some time later to put together my own solution inspired by the answers provided.

I copied app/code/core/Mage/Adminhtml/Model/System/Config/Source/Allregion.php to app/code/core/Mage/Adminhtml/Model/System/Config/Source/Ukregion.php

Then I changed the class definition to Mage\_Adminhtml\_Model\_System\_Config\_Source\_Ukregion.

Then I changed:

```
        $regionsCollection = Mage::getResourceModel('directory/region_collection')->load();

```

to include a country filter:

```
        $regionsCollection = Mage::getResourceModel('directory/region_collection')->addCountryFilter('GB')->load();

```

I now get the counties for the UK (which I had to edit myself but that is a different story-style-magento-problem).

Finally I changed my system.xml:

```
                    <counties translate="label">
                        <label>Counties</label>
                        <frontend_type>multiselect</frontend_type>
                        <sort_order>10</sort_order>
                        <source_model>adminhtml/system_config_source_ukregion</source_model>
                        <show_in_default>1</show_in_default>
                        <show_in_website>1</show_in_website>
                        <show_in_store>1</show_in_store>
                    </counties>

```

The use of 'UK' instead of 'GB' is entirely deliberate - GB does not include the NI counties it is just used for 'legacy reasons'. 'UK' does include Northern Ireland, as does my county list.