• Модуль: lists
  • Путь к файлу: ~/bitrix/modules/lists/lib/field.php
  • Класс: BitrixListsField
  • Вызов: Field::prepareEditDefaultField
static function prepareEditDefaultField(array $field)
{
	$result = array(
		'id' => $field['FIELD_ID'],
		'name' => $field['NAME'],
		'required' => $field['IS_REQUIRED'] == 'Y' ? true : false,
		'type' => 'text',
		'show' => $field['SHOW']
	);
	if($field['READ'] == 'Y')
	{
		$result['type'] = 'custom';
		$result['value'] = '';
	}
	return $result;
}