• Модуль: bizproc
  • Путь к файлу: ~/bitrix/modules/bizproc/classes/general/taskservice.php
  • Класс: CBPTaskService
  • Вызов: CBPTaskService::onAdminInformerInsertItems
static function onAdminInformerInsertItems()
{
	global $USER;

	if(!defined("BX_AUTH_FORM"))
	{
		$tasksCount = CUserCounter::GetValue($USER->GetID(), 'bp_tasks');

		if($tasksCount > 0)
		{
			$bpAIParams = array(
				"TITLE" => GetMessage("BPTS_AI_BIZ_PROC"),
				"HTML" => ''.GetMessage("BPTS_AI_EX_TASKS").'
'.GetMessage("BPTS_AI_TASKS_NUM").' '.$tasksCount, "FOOTER" => ''.GetMessage("BPTS_AI_TASKS_PERF").'', "COLOR" => "red", "ALERT" => true ); CAdminInformer::AddItem($bpAIParams); } } }