_profile_field_types

Хочешь помочь с переводом? Это очень просто и быстро. Лишь зарегистрируйся, и можешь тут же начать переводить.

modules/profile/profile.module, строка 543

Версии
5 – 6
_profile_field_types($type = NULL)

▾ 2 функции вызывают _profile_field_types()

profile_admin_overview in modules/profile/profile.admin.inc
Form builder to display a listing of all editable profile fields. See alsoprofile_admin_overview_submit()
profile_field_form in modules/profile/profile.admin.inc
Menu callback: Generate a form to add/edit a user profile field. See alsoprofile_field_form_validate()

Код

<?php
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;
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии

Вход в систему