• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/update/block/nodeattributes.php
  • Класс: BitrixLandingUpdateBlockNodeAttributes
  • Вызов: NodeAttributes::disableBlockDelete
static function disableBlockDelete(EntityEvent $event)
{
	if (BitrixLandingUpdateStepper::checkAgentActivity('BitrixLandingUpdateBlockNodeAttributes'))
	{
		$result = new EntityEventResult();
		$result->setErrors(array(
			new EntityEntityError(
				Loc::getMessage('LANDING_BLOCK_DISABLE_DELETE'),
				'BLOCK_DISABLE_DELETE'
			),
		));
		
		return $result;
	}
	else
	{
		self::removeCustomEvents();
	}
}