From 88ed011e5aff18f3d21665a288c53ffddacf6972 Mon Sep 17 00:00:00 2001 From: jacob Date: Wed, 22 Feb 2012 15:57:29 +0000 Subject: [PATCH] Modified the user info structure to explain the users' t-shirt size as an enumeration rather than a varchar --- user.inc.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/user.inc.php b/user.inc.php index 517a6fb..6fc7c72 100644 --- a/user.inc.php +++ b/user.inc.php @@ -572,8 +572,18 @@ function user_get_fields($userRoles = null){ } } break; - - + case 'tshirt': + $fields[$fieldName]['description'] = "T-Shirt size of participant"; + $fields[$fieldName]['type'] = 'singleselect'; + $fields[$fieldName]['options'] = array( + 'none' => 'None', + 'xsmall' => 'X-Small', + 'small' => 'Small', + 'medium' => 'Medium', + 'large' => 'Large', + 'xlarge' => 'X-large' + ); + break; default: if(!strncasecmp($ftype, "varchar", 7)){