Documentation

DeleteFieldEnum

CUserFieldEnum::DeleteFieldEnum(
 int FIELD_ID
)

The method removes all values of user field list. The list is completely deleted as a result. Non-static method.

Parameters

ParameterDescription
FIELD_IDUser field ID.

See Also

Examples

<?
//User property is defined for users
// list type with ID of UF_GENDER.

//0. define field ID.
$arFields = $GLOBALS['USER_FIELD_MANAGER']->GetUserFields("USER");
if(array_key_exists("UF_GENDER", $arFields))
{
$FIELD_ID = $arFields["UF_GENDER"]["ID"];

//1. Remove drop-down list
CUserFieldEnum::DeleteFieldEnum($FIELD_ID);
}
?>


© «Bitrix24», 2001-2022
Up