function _profile_field_types in Drupal 6
Same name and namespace in other branches
- 4 modules/profile.module \_profile_field_types()
- 5 modules/profile/profile.module \_profile_field_types()
- 7 modules/profile/profile.module \_profile_field_types()
2 calls to _profile_field_types()
- profile_admin_overview in modules/
profile/ profile.admin.inc - Form builder to display a listing of all editable profile fields.
- profile_field_form in modules/
profile/ profile.admin.inc - Menu callback: Generate a form to add/edit a user profile field.
File
- modules/
profile/ profile.module, line 543 - Support for configurable user profiles.
Code
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;
}