• Модуль: imconnector
  • Путь к файлу: ~/bitrix/modules/imconnector/lib/rest/customconnectors.php
  • Класс: BitrixImConnectorRestCustomConnectors
  • Вызов: CustomConnectors::OnRestAppDelete
static function OnRestAppDelete($arParams): void
	{
		if (!empty($arParams['APP_ID']))
		{
			$raw = CustomConnectorsTable::getList([
				'select' => ['ID', 'REST_APP_ID', 'ID_CONNECTOR'],
				'filter' => [
					'=REST_APP_ID' => $arParams['APP_ID']
				]
			]);
			while ($row = $raw->fetch())
			{
				Helper::unRegisterApp([
					'ID' => $row['ID_CONNECTOR'],
					'REST_APP_ID' => $row['REST_APP_ID'],
				]);
			}
		}
	}