From a8433baee200e4f5b5a6645f04f3e159aa2bdf2a Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sun, 16 Sep 2007 16:03:32 +0000 Subject: [PATCH] bfojcapell: Added new field type LanguageDropdownField? (merged from branches/gsoc) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@42109 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- forms/LanguageDropdownField.php | 58 +++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100755 forms/LanguageDropdownField.php diff --git a/forms/LanguageDropdownField.php b/forms/LanguageDropdownField.php new file mode 100755 index 000000000..b001ff6d8 --- /dev/null +++ b/forms/LanguageDropdownField.php @@ -0,0 +1,58 @@ + $usedlangs, + "Other languages" => $alllangs + ), + reset($usedlangs) + ); + } + else { + parent::__construct($name, $title, $alllangs); + } + } +} + +?> \ No newline at end of file