mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
MINOR Removed the country dropdown field due to the framework has removed the CountryDropdownField
This
This commit is contained in:
parent
e6d8e81b33
commit
cbe1dce4ff
@ -1,28 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
/**
|
|
||||||
* A dropdown field which allows the user to select a country
|
|
||||||
*
|
|
||||||
* @package userforms
|
|
||||||
*/
|
|
||||||
class EditableCountryDropdownField extends EditableFormField {
|
|
||||||
|
|
||||||
static $singular_name = 'Country Dropdown';
|
|
||||||
|
|
||||||
static $plural_name = 'Country Dropdowns';
|
|
||||||
|
|
||||||
public function getFormField() {
|
|
||||||
return new CountryDropdownField($this->Name, $this->Title);
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getValueFromData($data) {
|
|
||||||
if(isset($data[$this->Name])) {
|
|
||||||
|
|
||||||
return Geoip::countryCode2name($data[$this->Name]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getIcon() {
|
|
||||||
return 'userforms/images/editabledropdown.png';
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user