• Модуль: socialnetwork
  • Путь к файлу: ~/bitrix/modules/socialnetwork/classes/general/user_relations.php
  • Класс: CAllSocNetUserRelations
  • Вызов: CAllSocNetUserRelations::OnBeforeConfirmNotify
static function OnBeforeConfirmNotify($module, $tag, $value, $arParams)
{
	if ($module == "socialnetwork")
	{
		$arTag = explode("|", $tag);
		if (count($arTag) == 4 && $arTag[1] == 'INVITE_USER')
		{
			if ($value == 'Y')
			{
				self::ConfirmRequestToBeFriend($arTag[2], $arTag[3]);
				return true;
			}
			else
			{
				self::RejectRequestToBeFriend($arTag[2], $arTag[3]);
				return true;
			}
		}
	}
}