• Модуль: socialnetwork
  • Путь к файлу: ~/bitrix/modules/socialnetwork/classes/general/search.php
  • Класс: CSocNetSearch
  • Вызов: CSocNetSearch::IBlockSectionUpdate
function IBlockSectionUpdate(&$arFields)
{
	if(!CModule::IncludeModule('search'))
		return;

	switch(intval($arFields["IBLOCK_ID"]))
	{
		case intval($this->_params["FILES_USER_IBLOCK_ID"] ?? null):
			$path_template = trim($this->_params["PATH_TO_USER_FILES"]);
			if($path_template <> '')
			{
				$this->IndexIBlockSection($arFields, $this->_user_id, "U", "files", "view", $path_template);
			}
		break;

		case intval($this->_params["FILES_GROUP_IBLOCK_ID"] ?? null):
			$path_template = trim($this->_params["PATH_TO_GROUP_FILES"]);
			if($path_template <> '')
			{
				$this->IndexIBlockSection($arFields, $this->_group_id, "G", "files", "view", $path_template);
			}
		break;
	}
}