- Introduced generateDateMonthYearSelectionBox() which is suitable for e.g.
[mailer.git] / inc / libs / user_functions.php
index fbf7c455ddd9d78659ae8ebe40b859534c2b8dad..5041a8c3a66b6f509535af2a3b2ec032f563c283 100644 (file)
@@ -971,24 +971,7 @@ function doDisplayGenericUserRegistrationForm () {
        } // END - if
 
        // Generate birthday selection
-       switch (getLanguage()) {
-               case 'de': // German date format
-                       $content['birthday_selection'] = addSelectionBox('da', postRequestElement('day')).addSelectionBox('mo', postRequestElement('month')).addSelectionBox('ye', postRequestElement('year'));
-                       break;
-
-               default: // Default is the US date format... :)
-                       $content['birthday_selection'] = addSelectionBox('mo', postRequestElement('month')).addSelectionBox('da', postRequestElement('day')).addSelectionBox('ye', postRequestElement('year'));
-                       break;
-       } // END - switch
-
-       // Shall I display the refid or shall I make it editable?
-       if (isDisplayRefidEnabled()) {
-               // Load "hide" form template
-               $content['refid_content'] = loadTemplate('guest_register_refid_hide', TRUE);
-       } else {
-               // Load template to enter it
-               $content['refid_content'] = loadTemplate('guest_register_refid', TRUE);
-       }
+       $content['birthday_selection'] = generateDayMonthYearSelectionBox(postRequestElement('day'),postRequestElement('month'),postRequestElement('year'));
 
        // ZIP codes are numerical values
        $content['zip'] = '';