Version: current

     1 <?php
     2
     3 /**
     4  *
     5  *
     6  * @package cart_shipping
     7  * @author menedem
     8  */
     9 class RestrictionRegionCountryDropdownField extends DropdownField{
    10
    11     static $defaultname = "-- International --";
    12
    13     function __construct($name, $title = null, $source = null, $value = "", $form = null) {
    14         $source = SiteConfig::current_site_config()->getCountriesList(true);
    15         parent::__construct($name, $title, $source, $value, $form);
    16         $this->setHasEmptyDefault(true);
    17         $this->setEmptyString(_t('RestrictionRegionCountryDropdownField.DefaultName', self::$defaultname));
    18     }
    19
    20 }

[Raise a SilverStripe Framework issue/bug](https://github.com/silverstripe/silverstripe-framework/issues/new)
- [Raise a SilverStripe CMS issue/bug](https://github.com/silverstripe/silverstripe-cms/issues/new)
- Please use the Silverstripe Forums to ask development related questions. -