• Модуль: report
  • Путь к файлу: ~/bitrix/modules/report/lib/visualconstructor/entity/widget.php
  • Класс: BitrixReportVisualConstructorEntityWidget
  • Вызов: Widget::removeCurrentUserWidgetByGId
static function removeCurrentUserWidgetByGId($widgetGId)
{
	global $USER;
	if ($USER)
	{
		$widget = static::load(
			array(
				'GID' => $widgetGId,
				'ROW.DASHBOARD.USER_ID' => $USER->getId()
			)
		);
		$widget->delete();
		return $widgetGId;
	}
	return null;

}