36 if ($ID > 0 && $arMessage[
"PARAM1"] !=
"IB" && IsModuleInstalled(
"iblock"))
38 $arTopic = (empty($arTopic) ? \CForumTopic::GetByID($arMessage[
"TOPIC_ID"]) : $arTopic);
39 if (!empty($arTopic) && $arTopic[
"XML_ID"] ==
"IBLOCK_".$arMessage[
"PARAM2"] && \CModule::IncludeModule(
"iblock"))
41 \CIBlockElement::SetPropertyValuesEx($arMessage[
"PARAM2"], 0, array(
42 "FORUM_MESSAGE_CNT" => array(
43 "VALUE" => \CForumMessage::GetList(array(), array(
"TOPIC_ID" => $arMessage[
"TOPIC_ID"],
"APPROVED" =>
"Y",
"!PARAM1" =>
"IB"),
true),
60 if (!empty($message[
"PARAM1"]) && !empty($message[
"PARAM2"]))
63 if (isset($message[
"XML_ID"]) && !empty($message[
"XML_ID"]))
67 (!is_null($protoEntity)) &&
68 (empty($protoEntity[
"moduleId"]) || Loader::includeModule($protoEntity[
"moduleId"])) &&
69 is_callable(array($protoEntity[
"className"],
"onmessageisindexed"))
72 $b = call_user_func_array(
73 array($protoEntity[
"className"],
"onmessageisindexed"),
74 array($id, $message, &$index)