- Модуль: intranet
- Путь к файлу: ~/bitrix/modules/intranet/classes/general/handlers.php
- Класс: CIntranetEventHandlers
- Вызов: CIntranetEventHandlers::OnFillSocNetLogEvents
static function OnFillSocNetLogEvents(&$arSocNetLogEvents)
{
$arSocNetLogEvents["news"] = array(
"ENTITIES" => array(
SONET_SUBSCRIBE_ENTITY_NEWS => array(
"TITLE" => GetMessage("INTR_SOCNET_LOG_NEWS"),
"TITLE_SETTINGS" => GetMessage("INTR_SOCNET_LOG_NEWS_SETTINGS"),
"TITLE_SETTINGS_1" => GetMessage("INTR_SOCNET_LOG_NEWS_SETTINGS_1"),
"TITLE_SETTINGS_2" => GetMessage("INTR_SOCNET_LOG_NEWS_SETTINGS_2"),
),
),
"CLASS_FORMAT" => "CIntranetEventHandlers",
"METHOD_FORMAT" => "FormatEvent_News",
"FULL_SET" => array("news", "news_comment"),
"COMMENT_EVENT" => array(
"EVENT_ID" => "news_comment",
"CLASS_FORMAT" => "CIntranetEventHandlers",
"METHOD_FORMAT" => "FormatComment_News",
"ADD_CALLBACK" => array("CIntranetEventHandlers", "AddComment_News"),
"UPDATE_CALLBACK" => array("CSocNetLogTools", "UpdateComment_Forum"),
"DELETE_CALLBACK" => array("CSocNetLogTools", "DeleteComment_Forum"),
"RATING_TYPE_ID" => "FORUM_POST"
),
"XDIMPORT_ALLOWED" => "Y"
);
}