...Человеческий поиск в разработке...
- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_activity.php
- Класс: \CAllCrmActivity
- Вызов: CAllCrmActivity::InjectUrnInMessage
static function InjectUrnInMessage(&$messageData, $urn, $codeAllocation = false) { if(!is_array($messageData) || empty($messageData)) { return false; } if($codeAllocation === false) { $codeAllocation = CCrmEMailCodeAllocation::GetCurrent(); } if($codeAllocation === CCrmEMailCodeAllocation::Subject) { $messageData['SUBJECT'] = CCrmActivity::InjectUrnInSubject( $urn, isset($messageData['SUBJECT']) ? $messageData['SUBJECT'] : '' ); return true; } elseif($codeAllocation === CCrmEMailCodeAllocation::Body) { $messageData['BODY'] = CCrmActivity::InjectUrnInBody( $urn, isset($messageData['BODY']) ? $messageData['BODY'] : '', isset($messageData['BODY_TYPE']) ? $messageData['BODY_TYPE'] : 'html' ); return true; } return false; }