• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/update/block/nodeattributes.php
  • Класс: BitrixLandingUpdateBlockNodeAttributes
  • Вызов: NodeAttributes::removeCustomEvents
static function removeCustomEvents()
{
	$eventManager = BitrixMainEventManager::getInstance();
	$eventManager->unregisterEventHandler(
		'landing',
		'BitrixLandingInternalsBlock::OnBeforeDelete',
		'landing',
		'BitrixLandingUpdateBlockNodeAttributes',
		'disableBlockDelete');
	$eventManager->unregisterEventHandler(
		'landing',
		'onLandingPublication',
		'landing',
		'BitrixLandingUpdateBlockNodeAttributes',
		'disablePublication'
	);
}