diff --git a/code/model/formfields/EditableCountryDropdownField.php b/code/model/formfields/EditableCountryDropdownField.php new file mode 100644 index 0000000..c0d235e --- /dev/null +++ b/code/model/formfields/EditableCountryDropdownField.php @@ -0,0 +1,28 @@ +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'; + } +} \ No newline at end of file