• Модуль: forum
  • Путь к файлу: ~/bitrix/modules/forum/classes/general/message.php
  • Класс: CAllForumMessage
  • Вызов: CAllForumMessage::OnSocNetLogFormatEvent
static function OnSocNetLogFormatEvent($arEvent, $arParams)
{
	if ($arEvent["EVENT_ID"] == "forum")
	{
		$arTmp = explode("&", $arEvent["PARAMS"]);
		foreach ($arTmp as $strTmp)
		{
			list($key, $value) = explode("=", $strTmp, 2);
			if($key == "type")
			{
				$type = $value;
				break;
			}
		}

		if ($type == "M")
			$arEvent["TITLE_TEMPLATE"] = "#USER_NAME# ".GetMessage("F_SONET_MESSAGE_TITLE");
		elseif ($type == "T")
			$arEvent["TITLE_TEMPLATE"] = "#USER_NAME# ".GetMessage("F_SONET_TOPIC_TITLE");
	}

	return $arEvent;
}