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