CCrmRestEventDispatcher::onUserFieldDelete

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmRestEventDispatcher
  4. onUserFieldDelete
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/restservice.php
  • Класс: \CCrmRestEventDispatcher
  • Вызов: CCrmRestEventDispatcher::onUserFieldDelete
static function onUserFieldDelete($fields, $id)
{
	if ($id > 0 && is_array($fields)
		&& isset($fields['FIELD_NAME']) && is_string($fields['FIELD_NAME']) && $fields['FIELD_NAME'] <> ''
		&& isset($fields['ENTITY_ID']) && static::verifyEntityId($fields['ENTITY_ID']))
	{
		$id = (int)$id;
		$entityId = $fields['ENTITY_ID'];
		$fieldName = $fields['FIELD_NAME'];

		self::sendEvent(
			'Delete',
			array('id' => $id, 'entityId' => $entityId, 'fieldName' => $fieldName),
			array('UF_ENTITY_ID' => $entityId)
		);
	}
}

Добавить комментарий