• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/util/userfield/ui.php
  • Класс: BitrixTasksUtilUserFieldUI
  • Вызов: UI::isSuitable
static function isSuitable(array $field)
{
	// the following fields are obsolete andor have no purpose of using with tasks module
	if(in_array($field['USER_TYPE_ID'], array('file', 'vote', 'video', 'disk_version', 'string_formatted', 'url_preview')))
	{
		return false;
	}

	// the following combinations of typemultiple works too far unstable to be presented to a user
	if($field['MULTIPLE'] == 'Y')
	{
		if(in_array($field['USER_TYPE_ID'], array('employee', 'hlblock', 'boolean', 'iblock_section')))
		{
			return false;
		}
	}

	return true;
}