• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/landing.php
  • Класс: BitrixLandingLanding
  • Вызов: Landing::transferBlock
protected function transferBlock($id, $lid)
{
	$id = intval($id);
	if (isset($this->blocks[$id]))
	{
		$result = $this->blocks[$id]->changeLanding($lid);
		$this->error->copyError($this->blocks[$id]->getError());
		if ($result)
		{
			unset($this->blocks[$id]);
		}
		return $result;
	}
	else
	{
		$this->error->addError(
			'BLOCK_NOT_FOUND',
			Loc::getMessage('LANDING_BLOCK_NOT_FOUND')
		);
		return false;
	}
}