AddEventHandler("iblock", "OnBeforeIBlockElementDelete", "BeforeDelElement"); function BeforeDelElement(&$arFields) { print_r($arFields); die(); }
file_put_contents($_SERVER['DOCUMENT_ROOT'] . '/deleteevent.log', var_export($arFields, true)); return false;