• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/mp_notifications.php
  • Класс: CMpNotifications
  • Вызов: CMpNotifications::addNotificationsPartnersNewModulesToInformer
static function addNotificationsPartnersNewModulesToInformer($arModules, $serverName) {
	foreach ($arModules as $partnerID => $arPartnerModules)
	{
		$arParams = array(
			'TITLE' => GetMessage("TOP_PANEL_AI_NEW_MODULE_TITLE"),
			'COLOR' => 'green',
			'FOOTER' => "".
						GetMessage('TOP_PANEL_AI_MODULE_UPDATE_BUTTON_HIDE').
						"",
			'ALERT' => true,
			'HTML' => GetMessage('TOP_PANEL_AI_NEW_MODULE_DESC', array("#PARTNER#" => $arPartnerModules[0]['PARTNER'])),
		);
		foreach ($arPartnerModules as $arModule)
		{
			$arParams['HTML'] .= ''.$arModule['NAME'].'
'; } $arParams['HTML'] .= self::addJsToInformer(); CAdminInformer::AddItem($arParams); } }