Source Code for Me (s-c.me)

Allows you to paste souce code to blogs! Adapted for Twitter! Here is Search Form in case you missed your code.
Code:
Selected Language:
Show Linenumbers:
Short link for Twitter:
HTML:

HTML view:

Copy Source | Copy HTML
<?
// файл /bitrix/php_interface/init.php
// регистрируем обработчик
AddEventHandler("iblock", "OnAfterIBlockElementDelete", Array("MyClass", "OnAfterIBlockElementDeleteHandler"));
class MyClass
{
    // создаем обработчик события "OnAfterIBlockElementDelete"
    function OnAfterIBlockElementDeleteHandler($arFields)
    {
        // Выполняем какие-либо действия
        // $arFields = array (
        //   'ID' => '368',
        //   'IBLOCK_ID' => '7',
        //   'WF_PARENT_ELEMENT_ID' => NULL,
        //   'WF_STATUS_ID' => '1',
        //   'PREVIEW_PICTURE' => NULL,
        //   'DETAIL_PICTURE' => NULL,
        //   'EXTERNAL_ID' => '368',
        // );
    }
}
?>




Based on Manoli.Net's CodeFormatter. Made by Topbot (c) 2008-2018