• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/classes/general/calendar_event.php
  • Класс: CCalendarEvent
  • Вызов: CCalendarEvent::checkLocationField
static function checkLocationField($location, $isNewEvent)
{
	$parsedNew = BitrixCalendarRoomsUtil::parseLocation($location['NEW']);
	if (!empty($parsedNew['room_event_id']))
	{
		$location['NEW'] = 'calendar_' . $parsedNew['room_id'];
	}

	if ($isNewEvent)
	{
		$location['OLD'] = '';
	}

	return $location;
}