• Модуль: socialnetwork
  • Путь к файлу: ~/bitrix/modules/socialnetwork/lib/componenthelper.php
  • Класс: BitrixSocialnetworkComponentHelper
  • Вызов: ComponentHelper::processBlogPostNewMailUserDestinations
static function processBlogPostNewMailUserDestinations(&$destinationList)
{
	foreach($destinationList as $key => $code)
	{
		if 	(preg_match('/^UE(.+)$/i', $code, $matches))
		{

			$userEmail = $matches[1];
			$errorText = '';

			$destRes = self::processUserEmail(array(
				'EMAIL' => $userEmail,
				'CONTEXT' => 'BLOG_POST'
			), $errorText);

			if (
				!empty($destRes)
				&& is_array($destRes)
			)
			{
				unset($destinationList[$key]);
				$destinationList = array_merge($destinationList, $destRes);
			}
		}
	}
}