function _profile_field_types($type = NULL) {
$types = array(
'textfield' => t('single-line textfield'),
'textarea' => t('multi-line textfield'),
'checkbox' => t('checkbox'),
'selection' => t('list selection'),
'list' => t('freeform list'),
'url' => t('URL'),
'date' => t('date'),
);
return isset($type) ? $types[$type] : $types;
}