• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/publicaction/landing.php
  • Класс: BitrixLandingPublicActionLanding
  • Вызов: Landing::updateHead
static function updateHead($lid, $content)
{
	static $internal = true;

	$lid = intval($lid);
	$result = new PublicActionResult();
	$landing = LandingCore::createInstance($lid, [
		'skip_blocks' => true
	]);
	$result->setResult(false);

	if ($landing->exist())
	{
		// fix module security
		$content = str_replace(' $lid,
			'ENTITY_TYPE' => BitrixLandingHook::ENTITY_TYPE_LANDING,
			'HOOK' => 'FONTS',
			'CODE' => 'CODE',
			'PUBLIC' => 'N'
		);
		$res = HookDataTable::getList(array(
			'select' => array(
				'ID', 'VALUE'
			),
			'filter' => $fields
		));
		if ($row = $res->fetch())
		{
			$existsContent = $row['VALUE'];

			// concat new fonts to the exists
			$found = preg_match_all(
				'#(