forked from science-ation/science-ation
Modified the user info structure to explain the users' t-shirt size as an enumeration rather than a varchar
This commit is contained in:
parent
f61b4b94f3
commit
88ed011e5a
14
user.inc.php
14
user.inc.php
@ -572,8 +572,18 @@ function user_get_fields($userRoles = null){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
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:
|
default:
|
||||||
if(!strncasecmp($ftype, "varchar", 7)){
|
if(!strncasecmp($ftype, "varchar", 7)){
|
||||||
|
Loading…
Reference in New Issue
Block a user